初步代替几个bat脚本的功能

This commit is contained in:
zhbaor 2024-09-23 16:12:34 +08:00
commit d0fbc89012
19 changed files with 4002 additions and 0 deletions

33
ui/src/pages/Launch.vue Normal file
View file

@ -0,0 +1,33 @@
<script setup>
function webview() {
pywebview.api.run('start ../python/pythonw webview_ui.py', './mower-ng')
}
function manager() {
pywebview.api.run('start ../python/pythonw manager.py', './mower-ng')
}
</script>
<template>
<n-flex
vertical
style="
gap: 16px;
height: 100%;
padding: 16px;
box-sizing: border-box;
justify-content: center;
align-items: center;
"
>
<n-button class="launch-btn" @click="webview">单开运行</n-button>
<n-button class="launch-btn" @click="manager">多开器</n-button>
</n-flex>
</template>
<style scoped>
.launch-btn {
width: 160px;
height: 48px;
}
</style>