perf: 优化删除文章和移动端删除文件
This commit is contained in:
parent
05065e7a40
commit
34bdd488e9
@ -3240,7 +3240,7 @@ export default {
|
||||
// 根据权限设置菜单
|
||||
this.setMenusByPermission(row)
|
||||
} else {
|
||||
if (row.suffix && row.suffix === 'md') {
|
||||
if (row.suffix && row.suffix === 'md' && this.queryFileType !== 'trash') {
|
||||
this.menus.splice(2, 0, {
|
||||
iconClass: 'menu-edit1',
|
||||
label: '编辑',
|
||||
|
||||
@ -670,7 +670,8 @@ export default {
|
||||
api.delete({
|
||||
currentDirectory: this.rowContextData.path,
|
||||
username: this.$store.state.user.name,
|
||||
fileIds: fileIds
|
||||
fileIds: fileIds,
|
||||
sweep: true
|
||||
}).then(() => {
|
||||
// 刷新列表
|
||||
this.getFileList()
|
||||
|
||||
@ -300,7 +300,8 @@ export default {
|
||||
api.delete({
|
||||
currentDirectory: '',
|
||||
username: this.$store.state.user.name,
|
||||
fileIds: fileIds
|
||||
fileIds: fileIds,
|
||||
sweep: true
|
||||
}).then(() => {
|
||||
// 移除列表
|
||||
this.getArticleList()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user