Browse Source

Update Index.vue

star7th 7 years ago
parent
commit
25e902c0b2
1 changed files with 3 additions and 1 deletions
  1. 3 1
      web_src/src/components/page/edit/Index.vue

+ 3 - 1
web_src/src/components/page/edit/Index.vue

@@ -241,6 +241,8 @@ export default {
           if (response.data.error_code === 0 ) {
             //that.$message.success("加载成功");
             that.cat2 = response.data.data ;
+            var no_cat = {"cat_id":'' ,"cat_name":" "} ;
+            that.cat2.unshift(no_cat);
             that.get_default_cat();
           }else{
             that.$alert(response.data.error_message);
@@ -506,4 +508,4 @@ export default {
     
   }
 }
-</script>
+</script>