diff --git a/src/components/userGacha/gro-echarts.vue b/src/components/userGacha/gro-echarts.vue index 4a770e5f..16d00cdb 100644 --- a/src/components/userGacha/gro-echarts.vue +++ b/src/components/userGacha/gro-echarts.vue @@ -26,7 +26,6 @@ - diff --git a/src/views/t-anno.vue b/src/views/t-anno.vue index 1ccd2728..c2a88e65 100644 --- a/src/views/t-anno.vue +++ b/src/views/t-anno.vue @@ -3,7 +3,9 @@
-
AnnoID: {{ annoId }} | Render by TeyvatGuide v{{ appVersion }}
+
+ AnnoID: {{ annoId }} | Render by TeyvatGuide v{{ appVersion }} +
{{ annoData.title }}
{{ parseText(annoData.subtitle) }}
@@ -57,7 +59,7 @@ onMounted(async () => { return; } const isDev = useAppStore().devMode ?? false; - if (isDev) await createAnnoJson(annoId, region, lang); + if (isDev) await createAnnoJson(); await showLoading.end(); }); @@ -67,7 +69,7 @@ function parseText(title: string): string { return div.innerText; } -async function createAnnoJson(annoId: number, region: AnnoServer, lang: AnnoLang): Promise { +async function createAnnoJson(): Promise { const jsonPath = `/anno_detail_json/${region}/${annoId}/${lang}`; const jsonTitle = `Anno_${region}_${annoId}_${lang}_JSON`; await createTGWindow(jsonPath, "Dev_JSON", jsonTitle, 960, 720, false, false); diff --git a/src/views/t-post-json.vue b/src/views/t-post-json.vue index 62f05ba9..df999f8e 100644 --- a/src/views/t-post-json.vue +++ b/src/views/t-post-json.vue @@ -1,10 +1,50 @@ - diff --git a/src/vite-env.d.ts b/src/vite-env.d.ts index 02e6884e..c316cff1 100644 --- a/src/vite-env.d.ts +++ b/src/vite-env.d.ts @@ -13,21 +13,6 @@ declare module "*.vue" { export default component; } -/** - * @description vue-json-viewer - * @package vue-json-viewer - * @version 3.0.4 - */ -declare module "vue-json-viewer" { - import type { DefineComponent } from "vue"; - const component: DefineComponent<{ - value: any; - copyable: boolean; - boxed: boolean; - }>; - export default component; -} - declare type ImportMeta = { readonly env: { MODE: string } }; declare interface TauriProcessEnv extends NodeJS.ProcessEnv { diff --git a/tsconfig.json b/tsconfig.json index 11cf9f78..a8dd677f 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -13,7 +13,7 @@ "esModuleInterop": true, "lib": ["DOM", "ESNext"], "skipLibCheck": true, - "types": ["vite/client", "node", "color-convert", "js-md5", "uuid", "src/vite-env"], + "types": ["vite/client", "node", "color-convert", "js-md5", "uuid"], "allowSyntheticDefaultImports": true, "composite": true, "baseUrl": ".", @@ -30,6 +30,7 @@ "*.yml", "*.yaml", "package.json", + "src/vite-env.d.ts", "src/**/*.d.ts", "src/**/*.ts", "src/**/*.vue",