소스 검색

improve: 移动端图片上传路由处理

From-wh 2 년 전
부모
커밋
80101af87c
2개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 2
      template/admin/src/router/index.js
  2. 1 1
      template/admin/src/router/modules/frameOut.js

+ 1 - 2
template/admin/src/router/index.js

@@ -95,8 +95,7 @@ export function delayNProgressDone(time = 300) {
 router.beforeEach(async (to, from, next) => {
 router.beforeEach(async (to, from, next) => {
   // PrevLoading.start();
   // PrevLoading.start();
   keepAliveSplice(to);
   keepAliveSplice(to);
-
-  if (to.fullPath.indexOf('kefu') != -1) {
+  if (to.fullPath.indexOf('kefu') != -1 || to.name == 'mobile_upload') {
     return next();
     return next();
   }
   }
   // if (Setting.showProgressBar) iView.LoadingBar.start()
   // if (Setting.showProgressBar) iView.LoadingBar.start()

+ 1 - 1
template/admin/src/router/modules/frameOut.js

@@ -169,7 +169,7 @@ export default [
   },
   },
   {
   {
     path: '/app/upload',
     path: '/app/upload',
-    name: `${pre}app-mobile_upload`,
+    name: `mobile_upload`,
     meta: {
     meta: {
       auth: true,
       auth: true,
       title: '手机端扫码上传',
       title: '手机端扫码上传',