From a69bf92c8907eb1fed227afb156ff0e1c5821c24 Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期日, 19 十月 2025 16:16:12 +0800
Subject: [PATCH] fix: bug
---
packages/hooks/setting.ts | 48 ++++++++++++++++++++++++++++++------------------
1 files changed, 30 insertions(+), 18 deletions(-)
diff --git a/packages/hooks/setting.ts b/packages/hooks/setting.ts
index a47f58d..8830255 100644
--- a/packages/hooks/setting.ts
+++ b/packages/hooks/setting.ts
@@ -1,6 +1,5 @@
-// import * as settingServices from '@12333/services/api/Setting';
import { useQuery } from '@tanstack/vue-query';
-import { MaybeRef, Ref, unref } from 'vue';
+import { MaybeRef, Ref, unref, ref } from 'vue';
import { BusinessSettingType, TempFolderPath } from '@12333/constants';
type UseBusinessSettingByTypeOptions<T extends object = object, TData = T> = {
@@ -45,19 +44,32 @@
offlinePayEndDays: number;
};
-// export function useUserCertificationSetting() {
-// const { businessSetting } = useBusinessSettingByType<UserCertificationSetting>({
-// type: BusinessSettingType.UserCertification,
-// select(data: any) {
-// return {
-// ...data,
-// enterprisePowerAttorneyTempPath: `${TempFolderPath}${data.enterprisePowerAttorneyTempPath}`,
-// idPhoteTempPath: `${TempFolderPath}${data.idPhoteTempPath}`,
-// payAmount: data.userCertificationAmount,
-// };
-// },
-// });
-// return {
-// userCertificationSetting: businessSetting,
-// };
-// }
+export function useUserCertificationSetting() {
+ // const { businessSetting } = useBusinessSettingByType<UserCertificationSetting>({
+ // type: BusinessSettingType.UserCertification,
+ // select(data: any) {
+ // return {
+ // ...data,
+ // enterprisePowerAttorneyTempPath: `${TempFolderPath}${data.enterprisePowerAttorneyTempPath}`,
+ // idPhoteTempPath: `${TempFolderPath}${data.idPhoteTempPath}`,
+ // payAmount: data.userCertificationAmount,
+ // };
+ // },
+ // });
+
+ const businessSetting = ref({
+ authenticationHelpUrl: '',
+ receivingAccount: '',
+ receivingCompanyName: '',
+ receivingBankName: '',
+ offlinePayEndTime: '',
+ offlinePayEndDays: 1,
+ enterprisePowerAttorneyTempPath: `${TempFolderPath}`,
+ idPhoteTempPath: `${TempFolderPath}`,
+ payAmount: 123,
+ });
+
+ return {
+ userCertificationSetting: businessSetting,
+ };
+}
--
Gitblit v1.9.1