|
@ -122,7 +122,12 @@ var TemplateItems = {
|
|
|
templateId: vm.templateId
|
|
|
}).then(function(res) {
|
|
|
vm.loading.close()
|
|
|
toastr && toastr.success("删除成功")
|
|
|
if(res.status == 200) {
|
|
|
toastr && toastr.success("删除成功")
|
|
|
} else {
|
|
|
toastr && toastr.error(res.msg)
|
|
|
}
|
|
|
|
|
|
EventBus.$emit("refresh-index")
|
|
|
vm.$router.replace("/")
|
|
|
}).catch(function(e) {
|