|
|
@ -80,7 +80,9 @@ export let constantRoutes = [
|
|
|
|
constantRoutes = [...constantRoutes, ...getFilterRouter()];
|
|
|
|
constantRoutes = [...constantRoutes, ...getFilterRouter()];
|
|
|
|
|
|
|
|
|
|
|
|
// 动态路由,基于用户权限动态去加载 - 公司及本地环境
|
|
|
|
// 动态路由,基于用户权限动态去加载 - 公司及本地环境
|
|
|
|
export const dynamicRoutes = getFilterRouter();
|
|
|
|
export const dynamicRoutes = JSON.parse(process.env.VUE_APP_ISTEST)
|
|
|
|
|
|
|
|
? []
|
|
|
|
|
|
|
|
: getFilterRouter();
|
|
|
|
|
|
|
|
|
|
|
|
// 防止连续点击多次路由报错
|
|
|
|
// 防止连续点击多次路由报错
|
|
|
|
let routerPush = Router.prototype.push;
|
|
|
|
let routerPush = Router.prototype.push;
|
|
|
|