Procházet zdrojové kódy

Merge remote-tracking branch 'origin/master'

tianbj před 6 roky
rodič
revize
879f9c553b

+ 7 - 1
src/main/webapp/WEB-INF/manager/cms/category/index.ftl

@@ -161,7 +161,13 @@ var indexVue = new Vue({
 						    			});
 					    				//删除成功,刷新列表
 					      				that.list();
-					      			}
+					      			}else {
+										that.$notify({
+											title: '失败',
+											message: res.msg,
+											type: 'warning'
+										});
+									}
 	            				});
 					    }).catch(() => {
 					    	that.$notify({

+ 6 - 0
src/main/webapp/WEB-INF/manager/cms/content/main.ftl

@@ -225,6 +225,12 @@
                                 });
                                 //删除成功,刷新列表
                                 that.list();
+                            }else {
+                                that.$notify({
+                                    title: '失败',
+                                    message: res.msg,
+                                    type: 'warning'
+                                });
                             }
                         });
                 }).catch(() => {