Make TS template in wails beta 35 can be built and run normally2

This commit is contained in:
daoif 2022-05-01 07:37:00 +08:00
parent 21a7a43ef8
commit f05063b46c

View File

@ -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 {