可信代码库-配置文件修复定向URL改为动态获取

This commit is contained in:
fmk1023
2025-08-26 17:52:32 +08:00
parent 9c58b289a2
commit 452eda019a
9 changed files with 22 additions and 11 deletions

View File

@@ -107,7 +107,9 @@ onMounted(() => {
/** mobile暂定全部重定向为首页 */
addEventListener('notice', toNotice);
window.addEventListener('message', (event) => {
if (event.origin === (import.meta as any).env.VITE_HOST) {
let VITE_HOST = window.location.origin + '/openRepoPortal';
// if (event.origin === (import.meta as any).env.VITE_HOST) {
if (event.origin === VITE_HOST) {
if (event.data.type === 'success') {
if (isMountedModal()) {
closeModal();