Skip to content

Commit 9198707

Browse files
zhengkunwang223maninhill
authored andcommitted
fix: 解决编辑 PHP 运行环境版本显示错误的问题
1 parent b5f2716 commit 9198707

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

frontend/src/api/interface/runtime.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export namespace Runtime {
1515
status: string;
1616
codeDir: string;
1717
port: number;
18+
appID: number;
1819
}
1920

2021
export interface RuntimeReq extends ReqPage {

frontend/src/views/website/runtime/php/create/index.vue

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</el-radio-group>
3232
</el-form-item>
3333
<div v-if="runtime.resource === 'appstore'">
34-
<el-form-item :label="$t('runtime.app')" prop="appId">
34+
<el-form-item :label="$t('runtime.app')" prop="appID">
3535
<el-row :gutter="20">
3636
<el-col :span="12">
3737
<el-select
@@ -160,6 +160,7 @@ interface OperateRrops {
160160
id?: number;
161161
mode: string;
162162
type: string;
163+
appID?: number;
163164
}
164165
165166
const open = ref(false);
@@ -368,7 +369,7 @@ const acceptParams = async (props: OperateRrops) => {
368369
Object.assign(runtime, initData(props.type));
369370
searchApp(null);
370371
} else {
371-
searchApp(null);
372+
searchApp(props.appID);
372373
getRuntime(props.id);
373374
}
374375
open.value = true;

frontend/src/views/website/runtime/php/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const openCreate = () => {
130130
};
131131
132132
const openDetail = (row: Runtime.Runtime) => {
133-
createRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id });
133+
createRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id, appID: row.appID });
134134
};
135135
136136
const openDelete = async (row: Runtime.Runtime) => {

0 commit comments

Comments
 (0)