|
@@ -169,7 +169,7 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
-import { doLogout, clearMarkTask } from "@/api/markPage";
|
|
|
|
|
|
+import { doLogout, updateUISetting, clearMarkTask } from "@/api/markPage";
|
|
import { watch, watchEffect } from "vue";
|
|
import { watch, watchEffect } from "vue";
|
|
import { store } from "@/store/store";
|
|
import { store } from "@/store/store";
|
|
import MarkChangeProfile from "./MarkChangeProfile.vue";
|
|
import MarkChangeProfile from "./MarkChangeProfile.vue";
|
|
@@ -188,19 +188,19 @@ const exchangeModeName = $computed(() =>
|
|
store.setting.mode === "TRACK" ? "普通模式" : "轨迹模式"
|
|
store.setting.mode === "TRACK" ? "普通模式" : "轨迹模式"
|
|
);
|
|
);
|
|
|
|
|
|
-function toggleSettingMode() {
|
|
|
|
|
|
+async function toggleSettingMode() {
|
|
if (store.isTrackMode) {
|
|
if (store.isTrackMode) {
|
|
store.setting.mode = "COMMON";
|
|
store.setting.mode = "COMMON";
|
|
} else {
|
|
} else {
|
|
store.setting.mode = "TRACK";
|
|
store.setting.mode = "TRACK";
|
|
}
|
|
}
|
|
- // await updateUISetting(store.setting.mode, store.setting.uiSetting);
|
|
|
|
|
|
+ await updateUISetting(store.setting.mode, store.setting.uiSetting);
|
|
|
|
|
|
- // const body = document.querySelector("body");
|
|
|
|
- // if (body) body.innerHTML = "重新加载中...";
|
|
|
|
|
|
+ const body = document.querySelector("body");
|
|
|
|
+ if (body) body.innerHTML = "重新加载中...";
|
|
// 等待一秒后,重新加载页面
|
|
// 等待一秒后,重新加载页面
|
|
- // await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
|
|
- // window.location.reload();
|
|
|
|
|
|
+ await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
|
|
+ window.location.reload();
|
|
}
|
|
}
|
|
|
|
|
|
const progress = $computed(() => {
|
|
const progress = $computed(() => {
|