刘翔宇-旅管家 3 years ago
parent 9ec8022321
commit 7387348f2e

@ -41,19 +41,22 @@
watch: { watch: {
isShow(newVal) { isShow(newVal) {
if (newVal) { if (newVal) {
this.dynamicTags=[]; this.dynamicTags = [];
this.inputVisible=false; this.inputVisible = false;
this.load(); this.load();
} }
} }
}, },
methods: { methods: {
editor() {
this.isShow = false;
},
handleClose(tag) { handleClose(tag) {
destroy({ destroy({
id: tag.id id: tag.id
}).then(response => { }).then(response => {
this.$message.success("操作成功"); this.$message.success("操作成功");
this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1); this.dynamicTags.splice(this.dynamicTags.indexOf(tag), 1);
}).catch(error => { }).catch(error => {
//reject(error) //reject(error)
this.$message.error("操作失败"); this.$message.error("操作失败");

Loading…
Cancel
Save