add logic
This commit is contained in:
@@ -42,6 +42,8 @@ export class CollectSuccess {
|
||||
readonly cityName = input('');
|
||||
readonly opened = input(0);
|
||||
readonly total = input(1);
|
||||
readonly areaId = input('');
|
||||
readonly alreadyVisited = input(false);
|
||||
|
||||
protected readonly view = signal<'model' | 'image'>('model');
|
||||
protected readonly modelLoaded = signal(false);
|
||||
@@ -129,7 +131,8 @@ export class CollectSuccess {
|
||||
return;
|
||||
}
|
||||
|
||||
void this.router.navigateByUrl('/city');
|
||||
const areaId = this.areaId();
|
||||
void this.router.navigate(areaId ? ['/city', areaId] : ['/']);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user