From e3d4c3426c86392e27df63300b601507b32f5c7e Mon Sep 17 00:00:00 2001
From: zhengyiming <540361168@qq.com>
Date: 星期三, 13 八月 2025 14:26:51 +0800
Subject: [PATCH] fix: 灵工管理

---
 apps/bMiniApp/src/subpackages/authentication/hooks/index.ts |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts b/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts
index 6cae857..39dfccd 100644
--- a/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts
+++ b/apps/bMiniApp/src/subpackages/authentication/hooks/index.ts
@@ -10,7 +10,7 @@
   UserCertificationPayType,
 } from '@12333/constants';
 import { FormValidator, Message } from '@12333/utils';
-// import { useUserCertificationSetting } from '@12333/hooks';
+import { useUserCertificationSetting } from '@12333/hooks';
 import Taro from '@tarojs/taro';
 
 type UseAuthenticationFlowOptions = {
@@ -158,32 +158,32 @@
   };
 }
 
-// export function useDownloadPowerAttorneyTemplate() {
-//   // const { userCertificationSetting } = useUserCertificationSetting();
+export function useDownloadPowerAttorneyTemplate() {
+  const { userCertificationSetting } = useUserCertificationSetting();
 
-//   function downloadPowerAttorneyTemplate() {
-//     Taro.showLoading({
-//       title: '涓嬭浇涓�',
-//     });
-//     Taro.downloadFile({
-//       url: userCertificationSetting.value.enterprisePowerAttorneyTempPath,
-//       success: function (res) {
-//         Taro.hideLoading();
-//         // Message.success('涓嬭浇鎴愬姛');
-//         var filePath = res.tempFilePath;
-//         Taro.openDocument({
-//           filePath: filePath,
-//           showMenu: true,
-//         });
-//       },
-//       fail: function (error: any) {
-//         Taro.hideLoading();
-//         Message.error('涓嬭浇澶辫触');
-//       },
-//     });
-//   }
+  function downloadPowerAttorneyTemplate() {
+    Taro.showLoading({
+      title: '涓嬭浇涓�',
+    });
+    Taro.downloadFile({
+      url: userCertificationSetting.value.enterprisePowerAttorneyTempPath,
+      success: function (res) {
+        Taro.hideLoading();
+        // Message.success('涓嬭浇鎴愬姛');
+        var filePath = res.tempFilePath;
+        Taro.openDocument({
+          filePath: filePath,
+          showMenu: true,
+        });
+      },
+      fail: function (error: any) {
+        Taro.hideLoading();
+        Message.error('涓嬭浇澶辫触');
+      },
+    });
+  }
 
-//   return {
-//     downloadPowerAttorneyTemplate,
-//   };
-// }
+  return {
+    downloadPowerAttorneyTemplate,
+  };
+}

--
Gitblit v1.9.1