优化目录结构
This commit is contained in:
@@ -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 = '/';
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user