diff --git a/packages/app-console/src/api/application.js b/packages/app-console/src/api/application.js index e78a3c0516..5d3f473cda 100644 --- a/packages/app-console/src/api/application.js +++ b/packages/app-console/src/api/application.js @@ -139,26 +139,13 @@ export function searchUserByUsername(username) { } /** - * 启动应用服务 + * 重启应用服务 * @param {*} appid * @returns */ -export async function startApplicationService(appid) { + export async function restartApplicationInstance(appid) { const res = await request({ - url: `/apps/${appid}/service/start`, - method: 'post' - }) - return res -} - -/** - * 停止应用服务 - * @param {*} appid - * @returns - */ -export async function stopApplicationService(appid) { - const res = await request({ - url: `/apps/${appid}/service/stop`, + url: `/apps/${appid}/instance/restart`, method: 'post' }) return res diff --git a/packages/app-console/src/views/cloudfunction/packages.vue b/packages/app-console/src/views/cloudfunction/packages.vue index e3948ae532..d62979fd6c 100644 --- a/packages/app-console/src/views/cloudfunction/packages.vue +++ b/packages/app-console/src/views/cloudfunction/packages.vue @@ -77,7 +77,7 @@