Browse Source

fix: 企业名称显示bug fix

zhangying 11 months ago
parent
commit
c2aabddabe
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vue/src/views/companyService/company/edit.vue

+ 2 - 2
vue/src/views/companyService/company/edit.vue

@@ -785,10 +785,10 @@ export default defineComponent(
     mounted() {
     mounted() {
       const id = history.state.params?.id;
       const id = history.state.params?.id;
       const op = history.state.params?.op;
       const op = history.state.params?.op;
-      if (op == 1) {
+      if (op == 1 || id == null) {
         this.operationType = "add"
         this.operationType = "add"
       }
       }
-      if (op == 2) {
+      if (op == 2 || id != null) {
         this.operationType = "edit"
         this.operationType = "edit"
       }
       }
       this.loadData(id);
       this.loadData(id);