Browse Source

文件夹打开点击两次,扫描目录

liuQiang 1 year ago
parent
commit
b9fa86fb1e
3 changed files with 6 additions and 4 deletions
  1. 3 1
      src/layout/indexCommon.vue
  2. 2 2
      src/views/department/MyFile.vue
  3. 1 1
      src/views/publicment/MyFile.vue

+ 3 - 1
src/layout/indexCommon.vue

@@ -108,7 +108,7 @@
           </div>
           <div v-show="isAlive">
             <router-view v-slot="{ Component }" :key="$router.currentRoute.value.fullPath">
-              <KeepAlive :include="['identifyFont']" :exclude="[ 'allback', 'search']">
+              <KeepAlive :exclude="[ 'allback', 'search']">
                 <component :is="Component" />
               </KeepAlive>
             </router-view>
@@ -543,6 +543,7 @@ const clickPath = (index, items) => {
 const clickTab = (item) => {
   let url = toRaw(item)
   setTimeout(() => {
+    console.log('toFileData',toFileData.value);
     if (toFileData.value) {
       localStorage.setItem("inChat", 0)
       // 去全文搜索单独判断
@@ -595,6 +596,7 @@ const clickTab = (item) => {
           });
         return
       }
+      console.log('noONe');
       editableTabsValue.value = toFileData.value.path
       router.push({
         path: toFileData.value.path,

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

@@ -137,7 +137,7 @@
                                 </div>
                             </div>
                         </template>
-                          <div v-if="thisRole.some(item=>item == 'upload') || (isDept && thisFolder.dirId)"
+                          <div v-if="(isDept && thisFolder.dirId)"
                                 style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
                                 <div style="margin-left: 5px;">
                                     <img src="../../assets/images/scanFile.png" style="width: 24px;height: 24px;" alt="">
@@ -1885,7 +1885,7 @@ export default {
             }else{
                 isDept.value = false
             }
-            console.log('isDept',isDept.value);
+            // console.log('isDept',isDept.value);
         }
         //修改文件夹权限
         const upFirstFoler =async (item)=>{

+ 1 - 1
src/views/publicment/MyFile.vue

@@ -135,7 +135,7 @@
                                 </div>
                             </div>
                         </template>
-                          <div v-if="thisRole.some(item=>item == 'upload') || (isDept && thisFolder.dirId)"
+                          <div v-if="(isDept && thisFolder.dirId)"
                                 style="display: flex;width: 92px;height: 32px;justify-content: flex-start;align-items: center;line-height: 18px;">
                                 <div style="margin-left: 5px;">
                                     <img src="../../assets/images/scanFile.png" style="width: 24px;height: 24px;" alt="">