feat: 添加路由守卫,优化路由管理并清理钱包卡片组件逻辑
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import type { RouteRecordRaw } from "vue-router";
|
||||
import { createRouter, createWebHistory } from "@ionic/vue-router";
|
||||
import { createRouterGuard } from "./guard";
|
||||
|
||||
const routes: Array<RouteRecordRaw> = [
|
||||
{
|
||||
@@ -64,4 +65,6 @@ const router = createRouter({
|
||||
routes,
|
||||
});
|
||||
|
||||
export default router;
|
||||
createRouterGuard(router);
|
||||
|
||||
export { router };
|
||||
|
||||
Reference in New Issue
Block a user