mirror of
https://github.com/Jerryplusy/AI-powered-switches.git
synced 2025-10-14 09:49:19 +00:00
修改api调用方式
This commit is contained in:
parent
54fbecbab0
commit
71243319e4
@ -50,7 +50,7 @@ export const api = {
|
||||
* @returns {Promise<axios.AxiosResponse<any>>}
|
||||
*/
|
||||
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
|
||||
|
Loading…
x
Reference in New Issue
Block a user