Browse Source

2022-10-7 16:00

codeMan 2 years ago
parent
commit
193c638976
3 changed files with 6 additions and 4 deletions
  1. 1 3
      src/SManagement/archives_upload/index.vue
  2. 1 1
      src/router/SManagement.js
  3. 4 0
      src/utils/tool.js

+ 1 - 3
src/SManagement/archives_upload/index.vue

@@ -117,15 +117,13 @@ export default {
       this.uploadCacheData.sat_sharematerialid = data.sat_sharematerialid
       this.uploadCacheData.attinfos = data.attinfos
       this.authId = this.$route.query.id
-      setTimeout(this.randerData, 1000)
+      setTimeout(this.randerData, 100)
       if (data.title != '') this.uploadCacheData.status = "完成"
       this.query_auth()
     },
     /* 更新附件列表数据 */
     randerData () {
       if (this.uploadType != 3) {
-        // console.log(222222222222222222, this.$refs.attFileList.randerData);
-
         this.$nextTick(() => {
           this.$refs.attFileList.randerData(this.uploadCacheData.attinfos)
         })

+ 1 - 1
src/router/SManagement.js

@@ -42,7 +42,7 @@ const SManagement = [{
   component: () => import(/* webpackChunkName: "about" */ '@/SManagement/archives_ad/index.vue')
 }, {
   path: '/upload_archives',
-  name: 'upload',
+  name: 'archives_adlist',
   meta: {
     title: '上传素材',
     ast_nav: true,

+ 4 - 0
src/utils/tool.js

@@ -13,6 +13,8 @@ export default {
       let active_modules = module_list.filter(item => {
         return item.name === appname
       })
+      console.log(active_modules);
+      
       // 获取当前应用权限
       let auth_list = active_modules[0].meta.auth
       // 判断是否拥有权限
@@ -20,6 +22,8 @@ export default {
 
       return _haveAuth
     } catch (error) {
+      console.log(error);
+      
       router.replace('/home')
     }