fix: 解决切换 PHP 版本扩展模版没办法继续选择的问题 (#3613)

pull/3617/head
zhengkunwang 11 months ago committed by GitHub
parent 54242ae220
commit 6879b92db3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -82,7 +82,7 @@
</span>
</el-form-item>
<el-form-item :label="$t('php.extensions')">
<el-select v-model="extensions" @change="changePHPExtension()">
<el-select v-model="extensions" @change="changePHPExtension()" clearable>
<el-option
v-for="(extension, index) in phpExtensions"
:key="index"
@ -279,6 +279,7 @@ const searchApp = (appId: number) => {
};
const changeApp = (appId: number) => {
extensions.value = undefined;
for (const app of apps.value) {
if (app.id === appId) {
initParam.value = false;
@ -291,6 +292,7 @@ const changeApp = (appId: number) => {
const changeVersion = () => {
loading.value = true;
initParam.value = false;
extensions.value = undefined;
GetAppDetail(runtime.appID, runtime.version, 'runtime')
.then((res) => {
runtime.appDetailID = res.data.id;
@ -387,6 +389,9 @@ const listPHPExtensions = async () => {
};
const changePHPExtension = () => {
if (extensions.value == '') {
return;
}
runtime.params['PHP_EXTENSIONS'] = extensions.value.split(',');
};

Loading…
Cancel
Save