diff --git a/frontend/src/api/interface/runtime.ts b/frontend/src/api/interface/runtime.ts index b327aea22..8fc913ecb 100644 --- a/frontend/src/api/interface/runtime.ts +++ b/frontend/src/api/interface/runtime.ts @@ -15,6 +15,7 @@ export namespace Runtime { status: string; codeDir: string; port: number; + appID: number; } export interface RuntimeReq extends ReqPage { diff --git a/frontend/src/views/website/runtime/php/create/index.vue b/frontend/src/views/website/runtime/php/create/index.vue index fc58eb745..928877d3d 100644 --- a/frontend/src/views/website/runtime/php/create/index.vue +++ b/frontend/src/views/website/runtime/php/create/index.vue @@ -31,7 +31,7 @@
- + { Object.assign(runtime, initData(props.type)); searchApp(null); } else { - searchApp(null); + searchApp(props.appID); getRuntime(props.id); } open.value = true; diff --git a/frontend/src/views/website/runtime/php/index.vue b/frontend/src/views/website/runtime/php/index.vue index a51078a34..5bf75372f 100644 --- a/frontend/src/views/website/runtime/php/index.vue +++ b/frontend/src/views/website/runtime/php/index.vue @@ -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) => {