更新wails3版本及nuxt版本

This commit is contained in:
zyj
2026-03-11 18:33:15 +08:00
parent dec0ad4cb5
commit 80c6f77772
6 changed files with 700 additions and 88 deletions

View File

@@ -1,5 +1,5 @@
<script setup>
import { ref, onMounted } from 'vue'
import { ref, onMounted, onUnmounted } from 'vue'
import {GreetService} from "../../bindings/changeme";
import {Events} from "@wailsio/runtime";
@@ -19,12 +19,18 @@ const doGreet = () => {
});
}
let cancelTimeListener = null;
onMounted(() => {
Events.On('time', (timeValue) => {
cancelTimeListener = Events.On('time', (timeValue) => {
time.value = timeValue.data;
});
})
onUnmounted(() => {
cancelTimeListener?.();
})
defineProps({
msg: String,
})