mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
🎨 路径变更,方法优化
This commit is contained in:
@@ -56,8 +56,8 @@
|
|||||||
// vue
|
// vue
|
||||||
import { computed, onMounted, ref } from "vue";
|
import { computed, onMounted, ref } from "vue";
|
||||||
import ToLoading from "../../components/overlay/to-loading.vue";
|
import ToLoading from "../../components/overlay/to-loading.vue";
|
||||||
import TuaOverview from "../../components/userabyss/tua-overview.vue";
|
import TuaOverview from "../../components/userAbyss/tua-overview.vue";
|
||||||
import TuaDetail from "../../components/userabyss/tua-detail.vue";
|
import TuaDetail from "../../components/userAbyss/tua-detail.vue";
|
||||||
// store
|
// store
|
||||||
import { useUserStore } from "../../store/modules/user";
|
import { useUserStore } from "../../store/modules/user";
|
||||||
// utils
|
// utils
|
||||||
@@ -72,12 +72,7 @@ const loadingTitle = ref("");
|
|||||||
|
|
||||||
// data
|
// data
|
||||||
const userTab = ref(0);
|
const userTab = ref(0);
|
||||||
const abyssCookie = ref({
|
const abyssCookie = ref(computed(() => userStore.getCookieGroup4()));
|
||||||
cookie_token: "",
|
|
||||||
account_id: "",
|
|
||||||
ltoken: "",
|
|
||||||
ltuid: "",
|
|
||||||
});
|
|
||||||
const user = computed(() => userStore.getCurAccount());
|
const user = computed(() => userStore.getCurAccount());
|
||||||
|
|
||||||
const localAbyss = ref([] as TGApp.Sqlite.Abyss.SingleTable[]);
|
const localAbyss = ref([] as TGApp.Sqlite.Abyss.SingleTable[]);
|
||||||
@@ -86,12 +81,6 @@ const curAbyss = ref({} as TGApp.Sqlite.Abyss.SingleTable);
|
|||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
loadingTitle.value = "正在加载深渊数据";
|
loadingTitle.value = "正在加载深渊数据";
|
||||||
abyssCookie.value = {
|
|
||||||
cookie_token: userStore.getCookieItem("cookie_token"),
|
|
||||||
account_id: userStore.getCookieItem("account_id"),
|
|
||||||
ltoken: userStore.getCookieItem("ltoken"),
|
|
||||||
ltuid: userStore.getCookieItem("ltuid"),
|
|
||||||
};
|
|
||||||
await initAbyssData();
|
await initAbyssData();
|
||||||
loading.value = false;
|
loading.value = false;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user