2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 14:57:16 +08:00

feat(#419): 面板自动更新

This commit is contained in:
耗子
2025-01-02 19:00:19 +08:00
parent 813a8f42cf
commit 5dc14ef1bb
7 changed files with 78 additions and 23 deletions

View File

@@ -17,6 +17,7 @@ const model = ref<Setting>({
port: 8888,
entrance: '',
offline_mode: false,
auto_update: false,
website_path: '',
backup_path: '',
https: false,
@@ -103,6 +104,9 @@ onMounted(() => {
<n-form-item :label="$t('settingIndex.edit.fields.offline.label')">
<n-switch v-model:value="model.offline_mode" />
</n-form-item>
<n-form-item label="自动更新">
<n-switch v-model:value="model.auto_update" />
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.path.label')">
<n-input
v-model:value="model.website_path"

View File

@@ -7,6 +7,7 @@ export interface Setting {
port: number
entrance: string
offline_mode: boolean
auto_update: boolean
website_path: string
backup_path: string
https: boolean