star7th 5 年之前
父节点
当前提交
d0d33a3c28
共有 1 个文件被更改,包括 8 次插入2 次删除
  1. 8 2
      web_src/src/components/team/Index.vue

+ 8 - 2
web_src/src/components/team/Index.vue

@@ -112,7 +112,10 @@ export default {
               if (response.data.error_code === 0 ) {
                 that.dialogFormVisible = false;
                 that.geList() ;
-                that.MyForm = {};
+                that.MyForm = {
+                  id:'',
+                  team_name:''
+                };
               }else{
                 that.$alert(response.data.error_message);
               }
@@ -149,7 +152,10 @@ export default {
 
       },
       addTeam(){
-        this.MyForm = [] ;
+        this.MyForm = {
+           id:'',
+           team_name:''
+        } ;
         this.dialogFormVisible = true;
 
       },