mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-31 22:18:07 +08:00
fix: 解决编辑 PHP 运行环境版本显示错误的问题
This commit is contained in:
parent
b5f2716299
commit
9198707ca4
@ -15,6 +15,7 @@ export namespace Runtime {
|
||||
status: string;
|
||||
codeDir: string;
|
||||
port: number;
|
||||
appID: number;
|
||||
}
|
||||
|
||||
export interface RuntimeReq extends ReqPage {
|
||||
|
@ -31,7 +31,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<div v-if="runtime.resource === 'appstore'">
|
||||
<el-form-item :label="$t('runtime.app')" prop="appId">
|
||||
<el-form-item :label="$t('runtime.app')" prop="appID">
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="12">
|
||||
<el-select
|
||||
@ -160,6 +160,7 @@ interface OperateRrops {
|
||||
id?: number;
|
||||
mode: string;
|
||||
type: string;
|
||||
appID?: number;
|
||||
}
|
||||
|
||||
const open = ref(false);
|
||||
@ -368,7 +369,7 @@ const acceptParams = async (props: OperateRrops) => {
|
||||
Object.assign(runtime, initData(props.type));
|
||||
searchApp(null);
|
||||
} else {
|
||||
searchApp(null);
|
||||
searchApp(props.appID);
|
||||
getRuntime(props.id);
|
||||
}
|
||||
open.value = true;
|
||||
|
@ -130,7 +130,7 @@ const openCreate = () => {
|
||||
};
|
||||
|
||||
const openDetail = (row: Runtime.Runtime) => {
|
||||
createRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id });
|
||||
createRef.value.acceptParams({ type: row.type, mode: 'edit', id: row.id, appID: row.appID });
|
||||
};
|
||||
|
||||
const openDelete = async (row: Runtime.Runtime) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user