2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 09:13:49 +08:00

feat: 离线模式

This commit is contained in:
耗子
2024-10-15 17:44:41 +08:00
parent 41d3d3fb97
commit b718c11f3a
11 changed files with 139 additions and 62 deletions

View File

@@ -16,6 +16,7 @@ const model = ref<Setting>({
email: '',
port: 8888,
entrance: '',
offline_mode: false,
website_path: '',
backup_path: '',
https: false,
@@ -66,7 +67,7 @@ onMounted(() => {
:placeholder="$t('settingIndex.edit.fields.name.placeholder')"
/>
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.locale.label')">
<n-form-item v-show="false" label="$t('settingIndex.edit.fields.locale.label')">
<n-select v-model:value="model.locale" :options="locales"> </n-select>
</n-form-item>
<n-form-item :label="$t('settingIndex.edit.fields.username.label')">
@@ -99,6 +100,9 @@ onMounted(() => {
:placeholder="$t('settingIndex.edit.fields.entrance.placeholder')"
/>
</n-form-item>
<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="$t('settingIndex.edit.fields.path.label')">
<n-input
v-model:value="model.website_path"