2213980799@qq.com 1 rok temu
rodzic
commit
83922f18d7
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      src/components/addDoc/util.js

+ 2 - 2
src/components/addDoc/util.js

@@ -3,8 +3,8 @@ const userId = store.state.user.info.userId
 const userName = store.state.user.info.name
 export function isPower(data = {}, power, selection = []) {
 
-    if (power == 'download') {
-        console.log(!data?.id && selection.length == 0)
+    if (power == 'add'&&data.userAuthority.length==0) { //文件夹默认开放新增权限
+        return true
     }
     if (!data?.id && selection.length == 0) {
         return false