huangbin 4 năm trước cách đây
mục cha
commit
cee3e5f87a

+ 1 - 1
src/router/index.ts

@@ -50,7 +50,7 @@ const routes: Array<RouteRecordRaw> = [
                     requireAuth: true,
                 },
                 redirect: (to) => {
-                    return { name: 'custom_info_normal' };
+                    return { name: 'custom_info_unsubmit' };
                 },
                 children: [
                     {

+ 3 - 3
src/views/information/custom/compoments/add/interface.ts

@@ -15,9 +15,9 @@ export interface FormState {
     contactname: string; //联系人
     mobilephone: string; //手机号码 (加密存储)
     telphone: string; //联系电话(加密存储)
-    provinceid: number | null; //省
-    cityid: number | null; //市
-    districtid: number | null; //地区
+    provinceid: number | undefined; //省
+    cityid: number | undefined; //市
+    districtid: number | undefined; //地区
     remark: string; //备注
     cardaddress: string; //证件地址 (加密存储)
     username: string;//用户姓名

+ 3 - 3
src/views/information/custom/compoments/add/setup.ts

@@ -54,9 +54,9 @@ export function initFormState(): FormState {
         contactname: '',
         mobilephone: '',
         telphone: '',
-        provinceid: 0,
-        cityid: 0,
-        districtid: 0,
+        provinceid: undefined,
+        cityid: undefined,
+        districtid: undefined,
         cardaddress: '',
         remark: '',
         username: '',