Skip to content

Commit

Permalink
Perf: Remove Unused Tips and Function
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhaoJiSen committed Jan 3, 2025
1 parent fee2123 commit 5022ca9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,6 @@ export default {
this.iVisible = false
this.$emit('add', true)
this.handleResult(res, null)
this.$message.success(this.$tc('UpdateSuccessMsg'))
}).catch(error => this.handleResult(null, error))
}
}
Expand Down
32 changes: 12 additions & 20 deletions src/components/Apps/AccountListTable/AccountList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -479,28 +479,22 @@ export default {
title: '复制到其他资产',
type: 'primary',
divided: true,
callback: async({ row }) => {
await this.getAssetDetail()
this.$nextTick(() => {
vm.$route.query.flag = 'copy'
vm.iAsset = this.asset
vm.account = row
vm.showAddDialog = true
})
callback: ({ row }) => {
vm.$route.query.flag = 'copy'
vm.iAsset = this.asset
vm.account = row
vm.showAddDialog = true
}
},
{
name: 'MoveToOther',
title: '移动到其他资产',
type: 'primary',
callback: async({ row }) => {
await this.getAssetDetail()
this.$nextTick(() => {
vm.$route.query.flag = 'move'
vm.iAsset = this.asset
vm.account = row
vm.showAddDialog = true
})
callback: ({ row }) => {
vm.$route.query.flag = 'move'
vm.iAsset = this.asset
vm.account = row
vm.showAddDialog = true
}
},
{
Expand Down Expand Up @@ -539,8 +533,7 @@ export default {
can: () => {
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
},
callback: async() => {
await this.getAssetDetail()
callback: () => {
setTimeout(() => {
vm.iAsset = this.asset
vm.account = {}
Expand All @@ -555,8 +548,7 @@ export default {
can: () => {
return vm.$hasPerm('accounts.add_account') && !this.$store.getters.currentOrgIsRoot
},
callback: async() => {
await this.getAssetDetail()
callback: () => {
setTimeout(() => {
vm.iAsset = this.asset
vm.account = {}
Expand Down

0 comments on commit 5022ca9

Please sign in to comment.