This commit is contained in:
Mrx
2026-05-13 12:00:36 +08:00
parent 66572b41ea
commit 10a11cbc7c
3 changed files with 10 additions and 4 deletions

View File

@@ -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 = () => {
<template>
<RouterView />
<WechatOverlay />
<WechatOverlay v-if="!isReportSharePage" />
<BindPhoneDialog />
<!-- <MaintenanceDialog /> -->
</template>

View File

@@ -72,6 +72,7 @@ async function sendVerificationCode() {
);
}
function startCountdown() {
isCountingDown.value = true
countdown.value = 60

View File

@@ -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,
},
},