From 10a11cbc7c24401c4086119d0ca798adca6f01e7 Mon Sep 17 00:00:00 2001 From: Mrx <18278715334@163.com> Date: Wed, 13 May 2026 12:00:36 +0800 Subject: [PATCH] f --- src/App.vue | 9 +++++++-- src/components/LoginDialog.vue | 1 + vite.config.js | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/App.vue b/src/App.vue index 0b8c86c..63ef76b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,6 +16,11 @@ const dialogStore = useDialogStore(); const authStore = useAuthStore(); const { configWeixinShare, setDynamicShare } = useWeixinShare(); +// 计算当前路由是否为报告分享页面 +const isReportSharePage = computed(() => { + return router.currentRoute.value.name === 'reportShare'; +}); + onMounted(() => { // 检查token版本,如果版本不匹配则清除旧token checkTokenVersion() @@ -196,7 +201,7 @@ const h5WeixinLogin = async () => { const h5WeixinGetCode = () => { const currentUrl = window.location.href; let redirectUri = encodeURIComponent(currentUrl); - let appId = "wxa581992dc74d860e"; + let appId = "wxd391e40295bd9dfb"; let state = "snsapi_base"; let scope = "snsapi_base"; let authUrl = `https://open.weixin.qq.com/connect/oauth2/authorize?appid=${appId}&redirect_uri=${redirectUri}&response_type=code&scope=${scope}&state=${state}#wechat_redirect`; @@ -208,7 +213,7 @@ const h5WeixinGetCode = () => { diff --git a/src/components/LoginDialog.vue b/src/components/LoginDialog.vue index 2e2affb..62e8522 100644 --- a/src/components/LoginDialog.vue +++ b/src/components/LoginDialog.vue @@ -72,6 +72,7 @@ async function sendVerificationCode() { ); } + function startCountdown() { isCountingDown.value = true countdown.value = 60 diff --git a/vite.config.js b/vite.config.js index 4cf83c2..d0ebfb0 100644 --- a/vite.config.js +++ b/vite.config.js @@ -15,8 +15,8 @@ export default defineConfig({ strictPort: true, // 如果端口被占用则抛出错误而不是使用下一个可用端口 proxy: { "/api/v1": { - target: "http://127.0.0.1:8888", // 本地接口地址 - // target: "https://www.tianyuandb.com", // 本地接口地址 + // target: "http://127.0.0.1:8888", // 本地接口地址 + target: "https://www.tianyuandb.com", // 本地接口地址 changeOrigin: true, }, },