Ver código fonte

fix: 企业名称显示bug fix

zhangying 11 meses atrás
pai
commit
c2aabddabe
1 arquivos alterados com 2 adições e 2 exclusões
  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() {
       const id = history.state.params?.id;
       const op = history.state.params?.op;
-      if (op == 1) {
+      if (op == 1 || id == null) {
         this.operationType = "add"
       }
-      if (op == 2) {
+      if (op == 2 || id != null) {
         this.operationType = "edit"
       }
       this.loadData(id);