mirror of
https://github.com/misitebao/wails-template-vue
synced 2025-05-10 17:23:59 +08:00
Make TS template in wails beta 35 can be built and run normally2
This commit is contained in:
parent
21a7a43ef8
commit
f05063b46c
@ -35,7 +35,7 @@
|
||||
<script lang="ts">
|
||||
import { defineComponent } from "vue";
|
||||
import { useI18n } from "vue-i18n";
|
||||
import runtime from "../../../wailsjs/runtime";
|
||||
import { WindowMinimise, Quit } from "../../../wailsjs/runtime";
|
||||
|
||||
export default defineComponent({
|
||||
setup() {
|
||||
@ -51,10 +51,10 @@ export default defineComponent({
|
||||
};
|
||||
|
||||
const onclickMinimise = () => {
|
||||
runtime.WindowMinimise();
|
||||
WindowMinimise();
|
||||
};
|
||||
const onclickQuit = () => {
|
||||
runtime.Quit();
|
||||
Quit();
|
||||
};
|
||||
|
||||
return {
|
||||
|
Loading…
Reference in New Issue
Block a user