diff --git a/litemall-admin/src/views/goods/comment.vue b/litemall-admin/src/views/goods/comment.vue index d904fada..71c7f64c 100644 --- a/litemall-admin/src/views/goods/comment.vue +++ b/litemall-admin/src/views/goods/comment.vue @@ -129,6 +129,7 @@ export default { type: 'success', duration: 2000 }) + this.getList() }) }, handleDownload() { diff --git a/litemall-admin/src/views/goods/create.vue b/litemall-admin/src/views/goods/create.vue index eb5d6a6c..312edefa 100644 --- a/litemall-admin/src/views/goods/create.vue +++ b/litemall-admin/src/views/goods/create.vue @@ -410,7 +410,8 @@ export default { this.goods.categoryId = value[value.length - 1] }, handleCancel: function() { - this.$router.push({ path: '/goods/goods' }) + this.$store.dispatch('tagsView/delView', this.$route) + this.$router.push({ path: '/goods/list' }) }, handlePublish: function() { const finalGoods = { @@ -424,6 +425,7 @@ export default { title: '成功', message: '创建成功' }) + this.$store.dispatch('tagsView/delView', this.$route) this.$router.push({ path: '/goods/list' }) }).catch(response => { MessageBox.alert('业务错误:' + response.data.errmsg, '警告', { diff --git a/litemall-admin/src/views/goods/edit.vue b/litemall-admin/src/views/goods/edit.vue index b3dc6306..a2ccc463 100644 --- a/litemall-admin/src/views/goods/edit.vue +++ b/litemall-admin/src/views/goods/edit.vue @@ -419,6 +419,7 @@ export default { this.goods.categoryId = value[value.length - 1] }, handleCancel: function() { + this.$store.dispatch('tagsView/delView', this.$route) this.$router.push({ path: '/goods/list' }) }, handleEdit: function() { @@ -432,8 +433,9 @@ export default { .then(response => { this.$notify.success({ title: '成功', - message: '创建成功' + message: '编辑成功' }) + this.$store.dispatch('tagsView/delView', this.$route) this.$router.push({ path: '/goods/list' }) }) .catch(response => { diff --git a/litemall-admin/src/views/goods/list.vue b/litemall-admin/src/views/goods/list.vue index 04b11cf3..9d389c9a 100644 --- a/litemall-admin/src/views/goods/list.vue +++ b/litemall-admin/src/views/goods/list.vue @@ -190,8 +190,7 @@ export default { title: '成功', message: '删除成功' }) - const index = this.list.indexOf(row) - this.list.splice(index, 1) + this.getList() }).catch(response => { this.$notify.error({ title: '失败', diff --git a/litemall-admin/src/views/mall/brand.vue b/litemall-admin/src/views/mall/brand.vue index a13d8ddb..b1e9f2ca 100644 --- a/litemall-admin/src/views/mall/brand.vue +++ b/litemall-admin/src/views/mall/brand.vue @@ -3,8 +3,8 @@
- - + + 查找 添加 导出 @@ -13,9 +13,9 @@ - + - + - + - +