⬆️ 更新依赖

This commit is contained in:
目棃
2025-03-21 10:43:56 +08:00
parent 3228b6a305
commit f92684c7b3
8 changed files with 352 additions and 324 deletions

View File

@@ -14,11 +14,7 @@ import { onMounted, ref } from "vue";
const isPined = ref<boolean>(false);
onMounted(async () => {
// 因为无法获取窗口是否置顶,这边手动取消置顶
// 详见https://github.com/tauri-apps/tauri/issues/11078
await getCurrentWindow().setAlwaysOnTop(false);
});
onMounted(async () => (isPined.value = await getCurrentWindow().isAlwaysOnTop()));
async function switchPin(): Promise<void> {
isPined.value = !isPined.value;