liuQiang vor 2 Jahren
Ursprung
Commit
0b24f08dc2
3 geänderte Dateien mit 26 neuen und 19 gelöschten Zeilen
  1. 3 0
      src/utils/request.js
  2. 16 16
      src/views/department/MyFile.vue
  3. 7 3
      src/views/myfile/MyFile.vue

+ 3 - 0
src/utils/request.js

@@ -93,6 +93,9 @@ service.interceptors.response.use(res => {
         isRelogin.show = false;
       });
     }
+    // 清楚缓存
+    sessionStorage.clear()
+    localStorage.clear()
     return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
   } else if (code === 500) {
     ElMessage({ message: msg, type: 'error' })

+ 16 - 16
src/views/department/MyFile.vue

@@ -527,14 +527,14 @@ export default {
                 img: ImgFile.previewIcon,
                 name: "预览"
             },
-            {
-                img: ImgFile.addolder,
-                name: "移动到...",
-            },
-            {
-                img: ImgFile.copy,
-                name: "复制到...",
-            },
+            // {
+            //     img: ImgFile.addolder,
+            //     name: "移动到...",
+            // },
+            // {
+            //     img: ImgFile.copy,
+            //     name: "复制到...",
+            // },
             // {
             //     img: ImgFile.clipboard,
             //     name: "粘贴"
@@ -555,18 +555,18 @@ export default {
             //     img: ImgFile.goon,
             //     name: "发送"
             // },
-            {
-                img: ImgFile.share,
-                name: "分享"
-            },
+            // {
+            //     img: ImgFile.share,
+            //     name: "分享"
+            // },
             {
                 img: ImgFile.notePencil,
                 name: "在线编辑"
             },
-            {
-                img: ImgFile.togger,
-                name: "协作"
-            },
+            // {
+            //     img: ImgFile.togger,
+            //     name: "协作"
+            // },
             {
                 img: ImgFile.icc,
                 name: "文字识别"

+ 7 - 3
src/views/myfile/MyFile.vue

@@ -4,13 +4,14 @@
             <div  class="settingBox" @click="mouseClick">
                 <!-- 设置盒子顶部搜索 -->
                 <div class="topSearch">
-                    <div style="position: relative;">
+                    <!-- <div style="position: relative;">
                         <el-input v-model="searchFire" class="searchFire" size="large" placeholder="搜索文件"
                             style="width: 15rem;" />
                         <el-icon style="color: gray;display: inline-block;position: absolute;top: 8px;right: 5px;">
                             <Search />
                         </el-icon>
-                    </div>
+                    </div> -->
+                    <div class="">{{spaceName}}</div>
                     <div>
                         <el-icon style="font-size: 24px;" @click="createNewMenu(1,true)">
                             <Plus />
@@ -650,6 +651,7 @@ export default {
         const addTab = inject("addTab");
         const addFileTab = inject("addFileTab");
         const addFolderAdd = inject("addFolderAdd");
+        const spaceName = ref()
         // 获取文件夹,中栏,文件
         function getAllTop() {
             documents.getTop(3).then(res => {
@@ -659,6 +661,7 @@ export default {
                 newSpaceId.value = userMe[0].spaceId//变化
                 newDirId.value = userMe[0].dirId//变化
                 topPath.value = userMe[0].dirPath
+                spaceName.value = userMe[0].dirPath
                 let obj = {
                     pageNum: 1,
                     pageSize: 10
@@ -1808,7 +1811,8 @@ export default {
             addFolderAdd,
             addFileTab,
             threeBe,
-            newAdd
+            newAdd,
+            spaceName
         }
     },
     watch: {