feat: 移除更新类型字段

This commit is contained in:
DLmaster361
2025-09-14 00:37:43 +08:00
parent c4d1ed3184
commit 6846415899
6 changed files with 3 additions and 37 deletions

View File

@@ -7,10 +7,6 @@ export type GlobalConfig_Update = {
* 是否自动更新
*/
IfAutoUpdate?: (boolean | null);
/**
* 更新类型, stable为稳定版, beta为测试版
*/
UpdateType?: ('stable' | 'beta' | null);
/**
* 更新源: GitHub源, Mirror酱源, 自建源
*/

View File

@@ -31,7 +31,6 @@ export interface SettingsData {
}
Update: {
IfAutoUpdate: boolean
UpdateType: string
Source: string
ProxyAddress: string
MirrorChyanCDK: string

View File

@@ -82,7 +82,6 @@ const settings = reactive<SettingsData>({
},
Update: {
IfAutoUpdate: false,
UpdateType: 'stable',
Source: 'GitHub',
ProxyAddress: '',
MirrorChyanCDK: '',
@@ -107,11 +106,6 @@ const sendTaskResultTimeOptions = [
{ label: '仅失败时', value: '仅失败时' },
]
const updateTypeOptions = [
{ label: '稳定版', value: 'stable' },
{ label: '测试版', value: 'beta' },
]
const updateSourceOptions = [
{ label: 'GitHub', value: 'GitHub' },
{ label: 'Mirror酱', value: 'MirrorChyan' },
@@ -981,7 +975,7 @@ onMounted(() => {
</a-button>
</div>
<a-row :gutter="24">
<a-col :span="8">
<a-col :span="12">
<div class="form-item-vertical">
<div class="form-label-wrapper">
<span class="form-label">自动检查更新</span>
@@ -1002,24 +996,7 @@ onMounted(() => {
</a-select>
</div>
</a-col>
<a-col :span="8">
<div class="form-item-vertical">
<div class="form-label-wrapper">
<span class="form-label">更新类型</span>
<a-tooltip title="选择版本更新类型">
<QuestionCircleOutlined class="help-icon" />
</a-tooltip>
</div>
<a-select
v-model:value="settings.Update.UpdateType"
@change="(value: any) => handleSettingChange('Update', 'UpdateType', value)"
:options="updateTypeOptions"
size="large"
style="width: 100%"
/>
</div>
</a-col>
<a-col :span="8">
<a-col :span="12">
<div class="form-item-vertical">
<div class="form-label-wrapper">
<span class="form-label">更新源</span>