From 23084517c6dbc4cd78637f975ddab5f94be31af9 Mon Sep 17 00:00:00 2001 From: maslow Date: Mon, 1 Nov 2021 13:33:35 +0800 Subject: [PATCH] feat(sys-client): start app while created; --- docker-compose.yml | 2 +- packages/system-client/src/views/application/index.vue | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 3efe58a104..858ab74d26 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -54,7 +54,7 @@ services: SYS_SERVER_SECRET_SALT: Rewrite_Your_Own_Secret_Salt_abcdefg1234567 SHARED_NETWORK: laf_shared_network LOG_LEVEL: debug - APP_SERVICE_IMAGE: lafyun/app-service:latest + APP_SERVICE_IMAGE: lafyun/app-service:0.6.4 ACCOUNT_DEFAULT_APP_QUOTA: 5 APP_SERVICE_DEPLOY_HOST: local-dev.host:8080 # `*.local-dev.host` always resolved to 127.0.0.1, used to local development APP_SERVICE_DEPLOY_URL_SCHEMA: 'http' diff --git a/packages/system-client/src/views/application/index.vue b/packages/system-client/src/views/application/index.vue index 9e6a50a34d..896aea592b 100644 --- a/packages/system-client/src/views/application/index.vue +++ b/packages/system-client/src/views/application/index.vue @@ -292,7 +292,7 @@ export default { // 执行创建请求 const res = await createApplication({ name: data.name }) - if (!res.data?.insertedId) { + if (!res.data?.appid) { this.$notify({ type: 'error', title: '操作失败', @@ -306,7 +306,8 @@ export default { message: '创建成功!' }) - this.loadApps() + this.serviceLoading = true + this.startApp(res.data) this.dialogFormVisible = false }) },