فهرست منبع

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);