mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-10 08:58:15 +08:00
🐛 fix(content_id): 修复 content_id 数据错误
This commit is contained in:
@@ -39,7 +39,7 @@
|
||||
alt="material.content_id"
|
||||
:src="material.icon"
|
||||
class="calendar-icon"
|
||||
@click="showContent(material.content_id, material.name)"
|
||||
@click="showContent(material)"
|
||||
/>
|
||||
</div>
|
||||
<div class="content-detail">
|
||||
@@ -49,7 +49,7 @@
|
||||
alt="content.content_id"
|
||||
:src="content.icon"
|
||||
class="calendar-icon"
|
||||
@click="showContent(content.content_id, content.name)"
|
||||
@click="showContent(content)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -73,7 +73,7 @@
|
||||
alt="material.content_id"
|
||||
:src="material.icon"
|
||||
class="calendar-icon"
|
||||
@click="showContent(material.content_id, material.name)"
|
||||
@click="showContent(material)"
|
||||
/>
|
||||
</div>
|
||||
<div class="content-detail">
|
||||
@@ -83,7 +83,7 @@
|
||||
alt="content.content_id"
|
||||
:src="content.icon"
|
||||
class="calendar-icon"
|
||||
@click="showContent(content.content_id, content.name)"
|
||||
@click="showContent(content)"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -99,7 +99,7 @@ import { ref, onMounted } from "vue";
|
||||
import { TGAppData } from "../data/index";
|
||||
// interface
|
||||
import { type Map } from "../interface/Base";
|
||||
import { CalendarData, CalendarItem } from "../interface/Calendar";
|
||||
import { CalendarData, CalendarItem, MiniMaterial } from "../interface/Calendar";
|
||||
import { OBC_CONTENT_API } from "../plugins/Mys/interface/utils";
|
||||
import { createTGWindow } from "../utils/TGWindow";
|
||||
|
||||
@@ -169,9 +169,9 @@ function getCalendar (day: number) {
|
||||
return calendarData.value[week];
|
||||
}
|
||||
|
||||
function showContent (contentId: number, name: string) {
|
||||
const url = OBC_CONTENT_API.replace("{content_id}", contentId.toString());
|
||||
createTGWindow(url, "素材详情", name, 800, 600, true);
|
||||
function showContent (material: MiniMaterial) {
|
||||
const url = OBC_CONTENT_API.replace("{content_id}", material.content_id.toString());
|
||||
createTGWindow(url, "素材详情", material.name, 1200, 800, true);
|
||||
}
|
||||
|
||||
function getContents (day: number) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user