|
@@ -191,6 +191,18 @@ export default {
|
|
|
|
|
|
beforeDestroy() {
|
|
beforeDestroy() {
|
|
this.$g_off('photo_reload', this.reload);
|
|
this.$g_off('photo_reload', this.reload);
|
|
|
|
+ },
|
|
|
|
+
|
|
|
|
+ methods: {
|
|
|
|
+ async handleDelItem(item) {
|
|
|
|
+ const { success, msg } = await delItem({
|
|
|
|
+ id: item.id
|
|
|
|
+ });
|
|
|
|
+ if (success) {
|
|
|
|
+ this.$success('删除成功!');
|
|
|
|
+ this.$g_emit('photo_reload');
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|