Procházet zdrojové kódy

新增职位成功后清除表单

gcz před 2 roky
rodič
revize
d77f93ee00
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  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) => {