修复用户应用键的分隔符,从 '-' 更改为 '--',以保持一致性并优化 WebSocket 连接管理

This commit is contained in:
2026-02-05 14:08:45 +08:00
parent bf436f05e3
commit 5200cf4c38
4 changed files with 31 additions and 12 deletions

View File

@@ -3,11 +3,11 @@ export const createStudioAppListHtml = (opts: StudioOpts) => {
const user = opts.user!;
const userAppKey = opts?.userAppKey;
let showUserAppKey = userAppKey;
if (showUserAppKey && showUserAppKey.startsWith(user + '-')) {
showUserAppKey = showUserAppKey.replace(user + '-', '');
if (showUserAppKey && showUserAppKey.startsWith(user + '--')) {
showUserAppKey = showUserAppKey.replace(user + '--', '');
}
const pathApps = opts?.appIds?.map(appId => {
const shortAppId = appId.replace(opts!.user + '-', '')
const shortAppId = appId.replace(opts!.user + '--', '')
return {
appId,
shortAppId,