mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🚚 优化目录结构
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/**
|
||||
* @file router modules wiki.ts
|
||||
* @file router/modules/wiki.ts
|
||||
* @description wiki 路由模块
|
||||
* @since Beta v0.3.3
|
||||
* @since Beta v0.3.8
|
||||
*/
|
||||
|
||||
const wikiRoutes = [
|
||||
@@ -28,17 +28,17 @@ const wikiRoutes = [
|
||||
{
|
||||
path: "/wiki/detail/character/:id",
|
||||
name: "角色详情",
|
||||
component: async () => await import("../../views/WIKI/t-character.vue"),
|
||||
component: async () => await import("../../views/tw-character.vue"),
|
||||
},
|
||||
{
|
||||
path: "/wiki/detail/GCG/:id",
|
||||
name: "卡牌详情",
|
||||
component: async () => await import("../../views/WIKI/t-gcg.vue"),
|
||||
component: async () => await import("../../views/tw-gcg.vue"),
|
||||
},
|
||||
{
|
||||
path: "/wiki/detail/weapon/:id",
|
||||
name: "武器详情",
|
||||
component: async () => await import("../../views/WIKI/t-weapon.vue"),
|
||||
component: async () => await import("../../views/tw-weapon.vue"),
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
@@ -9,9 +9,9 @@ import { appWindow } from "@tauri-apps/api/window";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import showSnackbar from "../../components/func/snackbar";
|
||||
import ToLoading from "../../components/overlay/to-loading.vue";
|
||||
import { getWikiData } from "../../data";
|
||||
import showSnackbar from "../components/func/snackbar";
|
||||
import ToLoading from "../components/overlay/to-loading.vue";
|
||||
import { getWikiData } from "../data";
|
||||
|
||||
// 路由数据
|
||||
const id = <string>useRoute().params.id;
|
||||
@@ -9,9 +9,9 @@ import { appWindow } from "@tauri-apps/api/window";
|
||||
import { onMounted, ref } from "vue";
|
||||
import { useRoute } from "vue-router";
|
||||
|
||||
import showSnackbar from "../../components/func/snackbar";
|
||||
import ToLoading from "../../components/overlay/to-loading.vue";
|
||||
import { getWikiData } from "../../data";
|
||||
import showSnackbar from "../components/func/snackbar";
|
||||
import ToLoading from "../components/overlay/to-loading.vue";
|
||||
import { getWikiData } from "../data";
|
||||
|
||||
// 路由数据
|
||||
const id = <string>useRoute().params.id;
|
||||
Reference in New Issue
Block a user