🎨 子窗口缩减为两个label Sub_window 和 Dev_JSON

This commit is contained in:
BTMuli
2023-09-16 14:29:05 +08:00
parent d3eb5b7ab0
commit 0a9f3d2483
11 changed files with 54 additions and 26 deletions

View File

@@ -175,7 +175,7 @@ async function toOuter(url: string, title: string): Promise<void> {
showBar.value = true;
return;
}
createTGWindow(url, "祈愿", title, 1200, 800, true, true);
createTGWindow(url, "Sub_window", `Pool_${title}`, 1200, 800, true, true);
}
function toPost(pool: TGApp.Plugins.Mys.Gacha.RenderCard): void {
@@ -185,7 +185,7 @@ function toPost(pool: TGApp.Plugins.Mys.Gacha.RenderCard): void {
post_id: pool.postId.toString(),
},
}).href;
createTGWindow(path, "限时祈愿", pool.title, 960, 720, false, false);
createTGWindow(path, "Sub_window", `Post_${pool.postId} ${pool.title}`, 960, 720, false, false);
}
onUnmounted(() => {

View File

@@ -116,7 +116,7 @@ async function toPost(card: TGApp.Plugins.Mys.Position.RenderCard): Promise<void
},
}).href;
// 打开新窗口
createTGWindow(path, "近期活动", card.title, 960, 720, false, false);
createTGWindow(path, "Sub_window", `Post_${card.postId} ${card.title}`, 960, 720, false, false);
}
onUnmounted(() => {

View File

@@ -84,7 +84,7 @@ function toDetail(item: TGApp.App.Calendar.Item): void {
return;
}
const url = Mys.Api.Obc.replace("{contentId}", item.contentId.toString());
createTGWindow(url, "素材详情", item.name, 1200, 800, true);
createTGWindow(url, "Sub_window", `Content_${item.contentId} ${item.name}`, 1200, 800, true);
}
</script>
<style scoped>