Skip to content

Commit

Permalink
Fix:Fix issue with starting compose app and open third container
Browse files Browse the repository at this point in the history
  • Loading branch information
zhanghengxin committed Mar 25, 2024
1 parent 1ace123 commit be5e217
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion main/src/mixins/app/Business_OpenThirdApp.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit be5e217

Please sign in to comment.