mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-12 09:18:14 +08:00
👔 完善检测逻辑
This commit is contained in:
@@ -81,10 +81,6 @@ async function listenOnInit(): Promise<void> {
|
||||
}
|
||||
|
||||
async function checkAppLoad(): Promise<void> {
|
||||
if (!appStore.loading) {
|
||||
await resetDB();
|
||||
return;
|
||||
}
|
||||
let checkDB = false;
|
||||
try {
|
||||
checkDB = await TGSqlite.check();
|
||||
@@ -116,7 +112,6 @@ async function checkDeviceFp(): Promise<void> {
|
||||
const deviceLocal = appStore.deviceInfo;
|
||||
if (deviceInfo === undefined) {
|
||||
if (deviceLocal.device_fp === "0000000000000") {
|
||||
// 获取 deviceFp
|
||||
appStore.deviceInfo = await TGRequest.Device.getFp(appStore.deviceInfo);
|
||||
console.info("deviceInfo 已重新获取!");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user