mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-12-08 00:40:26 +08:00
refactor: 终端重构、系统参数配置调整
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
import Api from '@/common/Api';
|
||||
import config from '@/common/config';
|
||||
import { getSession } from '@/common/utils/storage';
|
||||
|
||||
export const machineApi = {
|
||||
// 获取权限列表
|
||||
@@ -56,3 +58,7 @@ export const cronJobApi = {
|
||||
delete: Api.newDelete('/machine-cronjobs/{id}'),
|
||||
execList: Api.newGet('/machine-cronjobs/execs'),
|
||||
};
|
||||
|
||||
export function getMachineTerminalSocketUrl(machineId: any) {
|
||||
return `${config.baseWsUrl}/machines/${machineId}/terminal?token=${getSession('token')}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user