guhongwei %!s(int64=4) %!d(string=hai) anos
pai
achega
87a6a76f53
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/views/government/detail.vue

+ 1 - 1
src/views/government/detail.vue

@@ -79,13 +79,13 @@ export default {
         const res = await this.newfetch(this.id);
         if (this.$checkRes(res)) {
           this.$set(this, `form`, res.data);
+          this.loading = true;
         } else {
           this.$message({
             message: res.errmsg,
             type: 'error',
           });
         }
-        this.loading = true;
       }
     },
     // 保存信息