f
This commit is contained in:
@@ -16,6 +16,11 @@ const dialogStore = useDialogStore();
|
|||||||
const authStore = useAuthStore();
|
const authStore = useAuthStore();
|
||||||
const { configWeixinShare, setDynamicShare } = useWeixinShare();
|
const { configWeixinShare, setDynamicShare } = useWeixinShare();
|
||||||
|
|
||||||
|
// 计算当前路由是否为报告分享页面
|
||||||
|
const isReportSharePage = computed(() => {
|
||||||
|
return router.currentRoute.value.name === 'reportShare';
|
||||||
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 检查token版本,如果版本不匹配则清除旧token
|
// 检查token版本,如果版本不匹配则清除旧token
|
||||||
checkTokenVersion()
|
checkTokenVersion()
|
||||||
@@ -196,7 +201,7 @@ const h5WeixinLogin = async () => {
|
|||||||
const h5WeixinGetCode = () => {
|
const h5WeixinGetCode = () => {
|
||||||
const currentUrl = window.location.href;
|
const currentUrl = window.location.href;
|
||||||
let redirectUri = encodeURIComponent(currentUrl);
|
let redirectUri = encodeURIComponent(currentUrl);
|
||||||
let appId = "wxa581992dc74d860e";
|
let appId = "wxd391e40295bd9dfb";
|
||||||
let state = "snsapi_base";
|
let state = "snsapi_base";
|
||||||
let scope = "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`;
|
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>
|
<template>
|
||||||
<RouterView />
|
<RouterView />
|
||||||
|
|
||||||
<WechatOverlay />
|
<WechatOverlay v-if="!isReportSharePage" />
|
||||||
<BindPhoneDialog />
|
<BindPhoneDialog />
|
||||||
<!-- <MaintenanceDialog /> -->
|
<!-- <MaintenanceDialog /> -->
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -72,6 +72,7 @@ async function sendVerificationCode() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function startCountdown() {
|
function startCountdown() {
|
||||||
isCountingDown.value = true
|
isCountingDown.value = true
|
||||||
countdown.value = 60
|
countdown.value = 60
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ export default defineConfig({
|
|||||||
strictPort: true, // 如果端口被占用则抛出错误而不是使用下一个可用端口
|
strictPort: true, // 如果端口被占用则抛出错误而不是使用下一个可用端口
|
||||||
proxy: {
|
proxy: {
|
||||||
"/api/v1": {
|
"/api/v1": {
|
||||||
target: "http://127.0.0.1:8888", // 本地接口地址
|
// target: "http://127.0.0.1:8888", // 本地接口地址
|
||||||
// target: "https://www.tianyuandb.com", // 本地接口地址
|
target: "https://www.tianyuandb.com", // 本地接口地址
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user