美化+命令修复
This commit is contained in:
parent
32496af392
commit
ec44c5c9ad
8 changed files with 35 additions and 24 deletions
|
@ -1,12 +1,12 @@
|
|||
<script setup>
|
||||
const steps = ref([
|
||||
{ title: '设置Git LFS', command: ['git\\bin\\git lfs install'] },
|
||||
{ title: '设置 Git LFS', command: ['lfs'] },
|
||||
{
|
||||
title: '安装pip',
|
||||
title: '安装 pip',
|
||||
command: ['ensurepip']
|
||||
},
|
||||
{
|
||||
title: '下载代码',
|
||||
title: '下载 mower-ng 代码',
|
||||
command: ['clone']
|
||||
}
|
||||
])
|
||||
|
|
|
@ -20,14 +20,18 @@ function manager() {
|
|||
align-items: center;
|
||||
"
|
||||
>
|
||||
<n-button class="launch-btn" @click="webview">单开运行</n-button>
|
||||
<n-button class="launch-btn" @click="manager">多开器</n-button>
|
||||
<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: 160px;
|
||||
width: 120px;
|
||||
height: 48px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -13,15 +13,13 @@ watch(branch, () => {
|
|||
|
||||
const steps = computed(() => [
|
||||
{
|
||||
title: '下载源码',
|
||||
title: '更新源码',
|
||||
command: ['fetch', `switch_${branch.value}`, `reset_${branch.value}`],
|
||||
cwd: 'mower-ng'
|
||||
},
|
||||
{
|
||||
title: '安装依赖',
|
||||
command: [
|
||||
'..\\python\\Scripts\\pip install -i https://mirror.sjtu.edu.cn/pypi/web/simple -r requirements.txt --no-warn-script-location'
|
||||
],
|
||||
command: ['pip_install'],
|
||||
cwd: 'mower-ng'
|
||||
}
|
||||
])
|
||||
|
@ -35,7 +33,7 @@ provide('current_state', current_state)
|
|||
<template>
|
||||
<n-flex vertical style="gap: 16px; height: 100%; padding: 16px; box-sizing: border-box">
|
||||
<n-flex>
|
||||
<div>代码分支:</div>
|
||||
<div>mower-ng 代码分支:</div>
|
||||
<n-radio-group v-model:value="branch">
|
||||
<n-flex>
|
||||
<n-radio value="fast">fast</n-radio>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue