|
@ -99,7 +99,7 @@ var TemplateItems = {
|
|
|
vm.loading.close()
|
|
|
toastr && toastr.success("保存成功")
|
|
|
EventBus.$emit("refresh-index")
|
|
|
vm.$router.back()
|
|
|
vm.$router.replace("/")
|
|
|
} else {
|
|
|
vm.loading.close()
|
|
|
toastr && toastr.error(res.msg)
|
|
@ -123,7 +123,7 @@ var TemplateItems = {
|
|
|
vm.loading.close()
|
|
|
toastr && toastr.success("删除成功")
|
|
|
EventBus.$emit("refresh-index")
|
|
|
vm.$router.back()
|
|
|
vm.$router.replace("/")
|
|
|
}).catch(function(e) {
|
|
|
vm.loading.close()
|
|
|
console.error(e)
|