<script setup>
function webview() {
  pywebview.api.run('webview', 'mower-ng')
}

function manager() {
  pywebview.api.run('manager', '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" type="primary" secondary size="large" @click="webview">
      单开运行
    </n-button>
    <n-button class="launch-btn" type="primary" secondary size="large" @click="manager">
      多开器
    </n-button>
  </n-flex>
</template>

<style scoped>
.launch-btn {
  width: 120px;
  height: 48px;
}
</style>
