♻️ 公告页的窗口创建逻辑也顺便改一下

This commit is contained in:
BTMuli
2023-12-20 00:47:26 +08:00
parent 0d5d77e2bd
commit 568b0b5db7
4 changed files with 23 additions and 25 deletions

View File

@@ -44,7 +44,7 @@ import { nextTick, onMounted, ref } from "vue";
import { useRouter } from "vue-router";
import ToLoading from "../../components/overlay/to-loading.vue";
import { createAnno } from "../../utils/TGWindow";
import { createTGWindow } from "../../utils/TGWindow";
import TGRequest from "../../web/request/TGRequest";
import TGUtils from "../../web/utils/TGUtils";
@@ -100,6 +100,12 @@ function parseTitle(title: string): string {
async function switchNews(): Promise<void> {
await router.push("/news/2");
}
function createAnno(item: TGApp.App.Announcement.ListCard): void {
const annoPath = `/anno_detail/${item.id}`;
const annoTitle = `Anno_${item.id} ${item.title}`;
createTGWindow(annoPath, "Sub_window", annoTitle, 960, 720, false, false);
}
</script>
<style lang="css" scoped>