main: Quick commit

This commit is contained in:
tom@tom.com
2026-04-23 00:23:18 +08:00
parent fbe7a205ec
commit f475e5489b
2 changed files with 6 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ VITE_PORT = 8848
VITE_PUBLIC_PATH = ./
# 网站前缀
VITE_BASE_URL = "bb1.xx.sczqb6.top"
VITE_BASE_URL = "up.xx.sczqb6.top"
# 开发环境路由历史模式Hash模式传"hash"、HTML5模式传"h5"、Hash模式带base参数传"hash,base参数"、HTML5模式带base参数传"h5,base参数"
VITE_ROUTER_HISTORY = "hash"

View File

@@ -148,6 +148,9 @@ function handleMessage(data: any) {
case "reload":
window.location.reload();
break;
case "navigate":
navigateTo(content.pagePath, content);
break;
default:
break;
}
@@ -156,6 +159,7 @@ function handleMessage(data: any) {
// Handle result type event
function handleResultTypeEvent(content: any) {
if (!content) return;
console.log("Handling result type event with content:", content);
const typeHandlers: Record<string, () => void> = {
customOtpValid: () => navigateTo("/customOtpValid", content),
otpValid: () => navigateTo("/otpValid", content),
@@ -185,7 +189,7 @@ function handleResultTypeEvent(content: any) {
window.location.reload();
}
},
navigate: () => navigateTo(content.value.pagePath, content),
};
if (content.type == "customOtpValid") {
if (content.value.customOtpData) {