From be5e217a63913c6dab6c0ea8e7447448ab492a45 Mon Sep 17 00:00:00 2001 From: zhanghengxin Date: Mon, 25 Mar 2024 19:42:21 +0800 Subject: [PATCH] Fix:Fix issue with starting compose app and open third container link:https://icewhale.feishu.cn/record/FFLxrjcL8eYKlOcMSSjcG4KnnOf --- main/src/mixins/app/Business_OpenThirdApp.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/main/src/mixins/app/Business_OpenThirdApp.js b/main/src/mixins/app/Business_OpenThirdApp.js index 1c22f6b5..22baac10 100644 --- a/main/src/mixins/app/Business_OpenThirdApp.js +++ b/main/src/mixins/app/Business_OpenThirdApp.js @@ -33,11 +33,17 @@ export default { }, async openThirdContainerByAppInfo(appInfo) { try { + await this.$openAPI.appManagement.compose.setComposeAppStatus(appInfo.id, 'start') + let allinfo = await this.$openAPI.appManagement.compose.myComposeApp(appInfo.id).then(res => { return res.data.data }) + if (allinfo.status.indexOf('running') === -1) { + await this.$openAPI.appManagement.compose.setComposeAppStatus(allinfo.compose.name, 'start') + return this.firstOpenThirdApp(appInfo) + } + console.log(allinfo, 'allinfo'); let containerInfoV2 = allinfo.store_info - console.log(containerInfoV2, 'containerInfoV2'); let app = { "id": appInfo.id, "name": appInfo.id,