f
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -72,6 +72,7 @@ async function sendVerificationCode() {
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
function startCountdown() {
|
||||
isCountingDown.value = true
|
||||
countdown.value = 60
|
||||
|
||||
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user