mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🎨 子窗口缩减为两个label Sub_window 和 Dev_JSON
This commit is contained in:
@@ -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(() => {
|
||||
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user