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

fix: website save

This commit is contained in:
耗子
2024-10-11 02:56:28 +08:00
parent ac6c57b394
commit 07bb0961da
6 changed files with 31 additions and 11 deletions

View File

@@ -38,8 +38,8 @@ const setting = ref<WebsiteSetting>({
const installedDbAndPhp = ref({
php: [
{
label: '',
value: ''
label: '不使用',
value: 0
}
],
db: [
@@ -131,7 +131,13 @@ onMounted(() => {
<n-form-item label="端口">
<n-dynamic-input v-model:value="setting.ports" show-sort-button>
<template #default="{ index }">
<n-input-number v-model:value="setting.ports[index]" :min="1" :max="65535" />
<n-input-number
v-model:value="setting.ports[index]"
:min="1"
:max="65535"
clearable
w-full
/>
</template>
</n-dynamic-input>
</n-form-item>
@@ -155,7 +161,7 @@ onMounted(() => {
<n-form-item label="PHP版本">
<n-select
v-model:value="setting.php"
default-value="0"
:default-value="0"
:options="installedDbAndPhp.php"
placeholder="选择PHP版本"
@keydown.enter.prevent

View File

@@ -450,7 +450,15 @@ onMounted(() => {
<n-form-item :label="$t('websiteIndex.create.fields.port.label')">
<n-dynamic-input v-model:value="addModel.ports" show-sort-button>
<template #default="{ index }">
<n-input-number v-model:value="addModel.ports[index]" :min="1" :max="65535" />
<div style="display: flex; align-items: center; width: 100%">
<n-input-number
v-model:value="addModel.ports[index]"
:min="1"
:max="65535"
clearable
w-full
/>
</div>
</template>
</n-dynamic-input>
</n-form-item>