From de10a5d208861e337ee3d388cdb523a77a817e06 Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 28 May 2026 10:52:48 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/libraries/config.ts | 4 ++++ src/common/store/useWeAppAuthStore.ts | 5 +++-- src/manifest.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 src/common/libraries/config.ts diff --git a/src/common/libraries/config.ts b/src/common/libraries/config.ts new file mode 100644 index 0000000..4676275 --- /dev/null +++ b/src/common/libraries/config.ts @@ -0,0 +1,4 @@ +export default { + WxAppId: 'wx04d2d27ca198367b', //小程序id + WxWorkId: 'wwf235ed3a4594b84a',//企业ID +} diff --git a/src/common/store/useWeAppAuthStore.ts b/src/common/store/useWeAppAuthStore.ts index 86ffbed..e631938 100644 --- a/src/common/store/useWeAppAuthStore.ts +++ b/src/common/store/useWeAppAuthStore.ts @@ -1,9 +1,10 @@ +import config from '@/common/libraries/config' import { Apis } from '@/gen/Apis' import { defineStore } from 'pinia' import { ref } from 'vue' import { getApiLoading } from '../libraries/apiLoading' -const wxworkId = 'ww96c806131a95c739' //企微id -const wxAppId = 'wx04d2d27ca198367b' //小程序id +const wxworkId = config.WxWorkId //企微id +const wxAppId = config.WxAppId //小程序id type DataType = { user?: { diff --git a/src/manifest.json b/src/manifest.json index d4710de..9c8c1ea 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -50,7 +50,7 @@ "quickapp": {}, /* 小程序特有相关 */ "mp-weixin": { - "appid": "wx04d2d27ca198367b", + "appid": "wx67e73fbc0e0139c1", "cloudfunctionRoot": "./cloudfunctions/", "setting": { "urlCheck": false