修改api调用方式

This commit is contained in:
Jerry 2025-07-12 00:02:27 +08:00
parent 54fbecbab0
commit 71243319e4

View File

@ -50,7 +50,7 @@ export const api = {
* @returns {Promise<axios.AxiosResponse<any>>} * @returns {Promise<axios.AxiosResponse<any>>}
*/ */
applyConfig: (switch_ip, commands) => applyConfig: (switch_ip, commands) =>
axios.post(buildUrl('/api/execute_cli_commands'), { switch_ip, commands }), axios.post(buildUrl('/api/execute_cli_commands'), { switch_ip: switch_ip, commands: commands }),
/** /**
* 更新基础URL * 更新基础URL