优化目录结构

This commit is contained in:
2026-05-25 20:37:36 +08:00
parent bbe7e71274
commit 40fd7f7e08
101 changed files with 108 additions and 110 deletions

View File

@@ -1,4 +1,4 @@
import { createLogger } from '../logger.js';
import { createLogger } from '../shared/logger.js';
const logger = createLogger('legacy-connect');
/**
@@ -6,7 +6,7 @@ const logger = createLogger('legacy-connect');
* 处理初始连接、创建通话和加入通话的功能
*/
import { showNotification, randomMeetingId } from '../utils.js';
import { showNotification, randomMeetingId } from '../shared/utils.js';
const MAX_AVATAR_SIZE = 2 * 1024 * 1024; // 2MB
@@ -20,7 +20,7 @@ function joinCall() {
localStorage.setItem('connectionId', connectionId);
// 跳转到通话界面
window.location.href = '../index.html';
window.location.href = '/';
} else {
showNotification('请输入连接ID', 'error');
}
@@ -39,7 +39,7 @@ function createCall() {
localStorage.setItem('connectionId', connectionId);
// 跳转到通话界面
window.location.href = '../index.html';
window.location.href = '/';
}

View File

@@ -6,7 +6,7 @@
<title>VideoCall - 重定向</title>
<script>
// 重定向到SPA入口页面index.html
window.location.href = '../index.html';
window.location.href = '/';
</script>
</head>
<body>