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