This commit is contained in:
Putoo
2026-04-27 17:53:43 +08:00
parent c55a104573
commit a219fbec32
10 changed files with 168 additions and 4 deletions

View File

@@ -1,5 +1,11 @@
export class PageExtend {
public static Redirect(route: string) {
navigateTo(route, { replace: true })
public static Redirect(route: string) {
navigateTo(route, { replace: true })
}
public static QueryString(params: string): string {
const route = useRoute()
const value = route.query[params]
return value ? String(value) : ''
}
}