|
|
@@ -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
|