mirror of
https://github.com/BTMuli/TeyvatGuide.git
synced 2025-12-14 09:38:13 +08:00
🐛 修复引用错误
This commit is contained in:
@@ -148,8 +148,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import { app, fs, invoke, os } from "@tauri-apps/api";
|
import { app, fs, invoke, os, process as TauriProcess } from "@tauri-apps/api";
|
||||||
import { relaunch } from "@tauri-apps/api/types/process";
|
|
||||||
import { computed, onMounted, ref } from "vue";
|
import { computed, onMounted, ref } from "vue";
|
||||||
|
|
||||||
import showConfirm from "../../components/func/confirm";
|
import showConfirm from "../../components/func/confirm";
|
||||||
@@ -534,7 +533,7 @@ async function confirmDelCache(): Promise<void> {
|
|||||||
});
|
});
|
||||||
await new Promise(() => {
|
await new Promise(() => {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await relaunch();
|
await TauriProcess.exit();
|
||||||
}, 1500);
|
}, 1500);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user