Merge pull request #4056 from timongh/patch-1

Fix UserItem.vue
This commit is contained in:
Grant Howard 2023-03-11 17:16:49 +08:00 committed by GitHub
commit 426400a36b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,10 +50,12 @@ export default Vue.extend({
if (this.config.getSettings) {
this.settings = this.config.getSettings(this.config.item)
}
Toast.mini(this.$refs.removeConfirmTemplate, this.$refs.removeIcon, {
trigger: 'click',
hideOnClick: true,
})
if (this.config.isUserItem) {
Toast.mini(this.$refs.removeConfirmTemplate, this.$refs.removeIcon, {
trigger: 'click',
hideOnClick: true,
})
}
},
methods: {
async removeItem() {