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) { if (this.config.getSettings) {
this.settings = this.config.getSettings(this.config.item) this.settings = this.config.getSettings(this.config.item)
} }
Toast.mini(this.removeConfirmTemplate, this.removeIcon, { if (this.config.isUserItem) {
trigger: 'click', Toast.mini(this.removeConfirmTemplate, this.removeIcon, {
hideOnClick: true, trigger: 'click',
}) hideOnClick: true,
})
}
}, },
methods: { methods: {
async removeItem() { async removeItem() {