Fix UserItem.vue

It called toast with argument null.
This commit is contained in:
timongh 2023-03-10 20:59:49 +08:00
parent 218cc06b08
commit ef51a17487

View File

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