瀏覽代碼

fix: 企业名称显示bug fix

zhangying 11 月之前
父節點
當前提交
c2aabddabe
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);