perf: 阻止文件重复分享

This commit is contained in:
jmal 2023-08-13 20:03:06 +08:00
parent 550a519973
commit 4786fc5bf1

View File

@ -385,7 +385,7 @@
>
<template slot-scope="scope">
<el-tooltip
v-if="scope.row.index === cellMouseIndex"
v-if="scope.row.index === cellMouseIndex && (!scope.row.isShare || scope.row.shareBase)"
class="item"
effect="light"
content="分享"
@ -3191,6 +3191,13 @@ export default {
if (!row.isFolder) {
this.menus.splice(-2, 0, { iconClass: "duplicate", label: "创建副本", operation: "duplicate" })
}
if (row.isShare && !row.shareBase) {
// 删除分享选项
let index = this.menus.findIndex(item => item.operation === "share")
if (index > -1) {
this.menus.splice(index, 1)
}
}
}
this.preliminaryRowData(row);
},