fix(window): 更改创建逻辑

Signed-off-by: BTMuli <BT-Muli@outlook.com>
This commit is contained in:
BTMuli
2023-04-05 14:21:05 +08:00
parent 1fafbd4612
commit e7d293f83b
8 changed files with 32 additions and 19 deletions

View File

@@ -12,6 +12,8 @@ import { ref, onMounted, reactive } from "vue";
import { useRoute } from "vue-router";
import JsonViewer from "vue-json-viewer";
import TLoading from "../components/t-loading.vue";
// tauri
import { appWindow } from "@tauri-apps/api/window";
// plugins
import MysOper from "../plugins/Mys";
@@ -25,6 +27,7 @@ const post_id = Number(useRoute().params.post_id);
let jsonData = reactive({});
onMounted(async () => {
await appWindow.show();
// 检查数据
if (!post_id) {
loadingEmpty.value = true;