mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-13 09:28:14 +08:00
feat(tempDir): 新建临时目录用于存储可能的临时数据
This commit is contained in:
@@ -41,6 +41,11 @@ async function checkLoad() {
|
||||
} catch (e) {
|
||||
await fs.createDir("mergeData", { dir: BaseDirectory.AppLocalData });
|
||||
}
|
||||
try {
|
||||
await fs.readDir(`${appStore.dataPath.temp}`);
|
||||
} catch (e) {
|
||||
await fs.createDir("tempData", { dir: BaseDirectory.AppLocalData });
|
||||
}
|
||||
console.log("检测到数据未加载,开始加载数据...");
|
||||
TGAppDataList.AppData.map(async item => {
|
||||
await fs.writeFile(
|
||||
|
||||
Reference in New Issue
Block a user