添加阿里镜像,修复依赖增加删除python/Scripts,fast/slow->测试版/稳定版
This commit is contained in:
parent
9e6001d0e0
commit
003769b8e4
4 changed files with 72 additions and 12 deletions
|
@ -16,23 +16,40 @@ async function rm_site_packages() {
|
|||
})
|
||||
running.value = false
|
||||
}
|
||||
|
||||
|
||||
async function rm_python_script() {
|
||||
running.value = true
|
||||
notification['info']({
|
||||
content: '提示',
|
||||
meta: '开始移除python/Script',
|
||||
duration: 3000
|
||||
})
|
||||
const response = await pywebview.api.rm_python_script()
|
||||
notification['info']({
|
||||
content: '提示',
|
||||
meta: response,
|
||||
duration: 3000
|
||||
})
|
||||
running.value = false
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<n-flex
|
||||
vertical
|
||||
style="
|
||||
<n-flex vertical style="
|
||||
gap: 16px;
|
||||
height: 100%;
|
||||
padding: 16px;
|
||||
box-sizing: border-box;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
"
|
||||
>
|
||||
">
|
||||
<n-button class="fix-btn" type="error" secondary size="large" @click="rm_site_packages">
|
||||
移除 site-packages
|
||||
</n-button>
|
||||
<n-button class="fix-btn" type="error" secondary size="large" @click="rm_python_script">
|
||||
移除 python/Script
|
||||
</n-button>
|
||||
</n-flex>
|
||||
</template>
|
||||
|
||||
|
|
|
@ -43,14 +43,15 @@ provide('current_state', current_state)
|
|||
<n-form-item label="mower-ng 代码分支">
|
||||
<n-radio-group v-model:value="branch">
|
||||
<n-flex>
|
||||
<n-radio value="fast">fast</n-radio>
|
||||
<n-radio value="slow">slow</n-radio>
|
||||
<n-radio value="fast">测试版</n-radio>
|
||||
<n-radio value="slow">稳定版</n-radio>
|
||||
</n-flex>
|
||||
</n-radio-group>
|
||||
</n-form-item>
|
||||
<n-form-item label="PyPI 仓库镜像">
|
||||
<n-radio-group v-model:value="mirror">
|
||||
<n-flex>
|
||||
<n-radio value="aliyun">阿里云镜像站</n-radio>
|
||||
<n-radio value="pypi">PyPI</n-radio>
|
||||
<n-radio value="sjtu">上海交通大学镜像站</n-radio>
|
||||
<n-radio value="tuna">清华大学镜像站</n-radio>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue