From 9198707ca4fc31139c39d946e6e7ef83a98bc989 Mon Sep 17 00:00:00 2001 From: zhengkunwang223 Date: Tue, 31 Oct 2023 18:43:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=BC=96=E8=BE=91=20P?= =?UTF-8?q?HP=20=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83=E7=89=88=E6=9C=AC?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/interface/runtime.ts | 1 + frontend/src/views/website/runtime/php/create/index.vue | 5 +++-- frontend/src/views/website/runtime/php/index.vue | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) 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) => {