Ver Fonte

文档权限

2213980799@qq.com há 1 ano atrás
pai
commit
83922f18d7
1 ficheiros alterados com 2 adições e 2 exclusões
  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