소스 검색

新增职位成功后清除表单

gcz 2 년 전
부모
커밋
d77f93ee00
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      src/components/jobs.vue

+ 2 - 0
src/components/jobs.vue

@@ -429,6 +429,7 @@ export default {
                 this.$message(res.msg);
                 this.dialogVisible = false;
                 this.$emit("getTotal");
+                this.form = { workPlace: this.defaultArea };
                 this.handlegetComPostList();
               })
               .catch((err) => {
@@ -447,6 +448,7 @@ export default {
               .then((res) => {
                 // console.log("addcomPost", res);
                 this.$message(res.msg);
+                this.form = { workPlace: this.defaultArea }
                 this.dialogVisible = false;
               })
               .catch((err) => {