remove useless file
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
|
||||
|
||||
import type { Router } from 'vue-router';
|
||||
import { NsMessage } from '/nerv-lib/component/message';
|
||||
import { authorizationService } from '/nerv-base/store/modules/authorization-service';
|
||||
@@ -10,6 +8,7 @@ export function createPermissionGuard(router: Router, whiteNameList: string[]) {
|
||||
const authorizationStore = authorizationService();
|
||||
const appConfig = appConfigStore();
|
||||
router.beforeEach(async (to, from, next) => {
|
||||
next();
|
||||
if (!appConfig.userCustomRouterGuard) {
|
||||
setRouteChange(to);
|
||||
if (to?.query?.nervsid) {
|
||||
|
Reference in New Issue
Block a user