mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
🔥 移除首页 emoji 下载
This commit is contained in:
16
src/App.vue
16
src/App.vue
@@ -19,7 +19,6 @@ import TBackTop from "./components/app/t-backTop.vue";
|
|||||||
import TSidebar from "./components/app/t-sidebar.vue";
|
import TSidebar from "./components/app/t-sidebar.vue";
|
||||||
import showConfirm from "./components/func/confirm";
|
import showConfirm from "./components/func/confirm";
|
||||||
import showSnackbar from "./components/func/snackbar";
|
import showSnackbar from "./components/func/snackbar";
|
||||||
import { getEmojis } from "./plugins/Mys/request/getEmojis";
|
|
||||||
import TGSqlite from "./plugins/Sqlite";
|
import TGSqlite from "./plugins/Sqlite";
|
||||||
import { useAppStore } from "./store/modules/app";
|
import { useAppStore } from "./store/modules/app";
|
||||||
import { useUserStore } from "./store/modules/user";
|
import { useUserStore } from "./store/modules/user";
|
||||||
@@ -64,7 +63,6 @@ async function listenOnInit(): Promise<void> {
|
|||||||
await event.listen("initApp", async () => {
|
await event.listen("initApp", async () => {
|
||||||
await tauri.invoke("register_deep_link");
|
await tauri.invoke("register_deep_link");
|
||||||
await getDeepLink();
|
await getDeepLink();
|
||||||
await emojiLoad();
|
|
||||||
await checkAppLoad();
|
await checkAppLoad();
|
||||||
await checkUserLoad();
|
await checkUserLoad();
|
||||||
await checkUpdate();
|
await checkUpdate();
|
||||||
@@ -72,20 +70,6 @@ async function listenOnInit(): Promise<void> {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function emojiLoad(): Promise<void> {
|
|
||||||
const res = await getEmojis();
|
|
||||||
if ("retcode" in res) {
|
|
||||||
console.error(res);
|
|
||||||
showSnackbar({
|
|
||||||
text: "表情包加载失败!",
|
|
||||||
color: "error",
|
|
||||||
timeout: 3000,
|
|
||||||
});
|
|
||||||
} else {
|
|
||||||
localStorage.setItem("emojis", JSON.stringify(res));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
async function checkAppLoad(): Promise<void> {
|
async function checkAppLoad(): Promise<void> {
|
||||||
if (appStore.loading) {
|
if (appStore.loading) {
|
||||||
console.info("数据已加载!");
|
console.info("数据已加载!");
|
||||||
|
|||||||
Reference in New Issue
Block a user