田源
2023-07-21 a758bc277ff4d1f8ede96a03cbbc10b96176be82
Source/UBCS-WEB/src/permission.js
@@ -7,7 +7,8 @@
import {validatenull} from '@/util/validate'
import {getToken} from '@/util/auth'
import NProgress from 'nprogress' // progress bar
import 'nprogress/nprogress.css' // progress bar style
import 'nprogress/nprogress.css'
import Store from "@/store"; // progress bar style
NProgress.configure({showSpinner: false});
const lockPage = store.getters.website.lockPage; //锁屏页
router.beforeEach((to, from, next) => {
@@ -29,8 +30,16 @@
            next({path: '/login'})
          })
        } else {
          const fullPath = to.fullPath
          const queryString = fullPath.split('?')[1];
          const value = to.query.src || to.fullPath;
          const label = to.query.name || to.name;
          const label = queryString === 'wupin'
            ? '物品主数据'
            : (queryString === 'renyuan'
              ? '人员主数据'
              : (queryString === 'gongyingshang'
                ? '供应商主数据'
                : (to.query.name || to.name)));
          const meta = to.meta || router.$avueRouter.meta || {};
          const i18n = to.query.i18n;
          if (to.query.target) {