fix: 发送mml命令超时时间30秒
This commit is contained in:
@@ -31,15 +31,13 @@ export async function getMMLByUDM() {
|
||||
* @param cmdStr 命令串
|
||||
* @returns
|
||||
*/
|
||||
export async function sendMMlByUDM(
|
||||
neId: string,
|
||||
cmdStr: string
|
||||
) {
|
||||
export async function sendMMlByUDM(neId: string, cmdStr: string) {
|
||||
// 发起请求
|
||||
const result = await request({
|
||||
url: `/api/rest/operationManagement/v1/elementType/UDM/objectType/mml?ne_id=${neId}`,
|
||||
method: 'post',
|
||||
data: { mml: [cmdStr] },
|
||||
timeout: 30_1000,
|
||||
});
|
||||
// 解析数据
|
||||
if (result.code === RESULT_CODE_SUCCESS && Array.isArray(result.data.data)) {
|
||||
|
||||
Reference in New Issue
Block a user