zhangxiao
2024-08-07 68b837c7f2f903bc93622f6f9f3ce7ce6c8e3cb2
src/router/guard/permission.ts
@@ -5,6 +5,7 @@
import { useUserStore, useAppStore } from '@/store';
import { appRoutes } from '../routes';
import { WHITE_LIST, NOT_FOUND } from '../constants';
import { defineStore } from "pinia";
export default function setupPermissionGuard(router: Router) {
  router.beforeEach(async (to, from, next) => {