mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2026-07-21 15:33:01 +10:00
fixed windows issues
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<HeaderButton @click="() => window.close()">
|
||||
<HeaderButton @click="() => close()">
|
||||
<XMarkIcon />
|
||||
</HeaderButton>
|
||||
</template>
|
||||
@@ -8,5 +8,11 @@
|
||||
import { MinusIcon, XMarkIcon } from "@heroicons/vue/16/solid";
|
||||
import { getCurrentWindow } from "@tauri-apps/api/window";
|
||||
|
||||
async function close(){
|
||||
console.log(window);
|
||||
const result = await window.close();
|
||||
console.log(`closed window: ${result}`);
|
||||
}
|
||||
|
||||
const window = getCurrentWindow();
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user