Prechádzať zdrojové kódy

新增职位成功后清除表单

gcz 2 rokov pred
rodič
commit
d77f93ee00
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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) => {