perf: 优化搜索状态下,进入目录后的右键菜单

This commit is contained in:
jmal 2024-05-20 18:47:09 +08:00
parent 133133b0d6
commit a16ecc0159

View File

@ -3289,7 +3289,8 @@ export default {
setMenus(row) {
this.menus = JSON.parse(JSON.stringify(this.singleMenus));
// 挂载的文件
if (this.$route.query.folder) {
const owner = localStorage.getItem('mountFileOwner')
if (this.$route.query.folder && owner) {
// 根据权限设置菜单
this.setMenusByPermission(row);
} else {