已合并
【4f91f007fc3dd5d19ea87ed549e0081d】fix: 修复web界面长时间显示网卡资源正在卸载 #1425
Szgsh创建于 8月10日
【4f91f007fc3dd5d19ea87ed549e0081d】fix: 修复web界面长时间显示网卡资源正在卸载 #1425
已合并
Szgsh创建于 8月10日
1 个文件变更+4-0
@@ -9,6 +9,10 @@
9-- See the Mulan PSL v2 for more details.9-- See the Mulan PSL v2 for more details.
10 10 
11-- 校验当前网卡是否具备PortConfig接口11-- 校验当前网卡是否具备PortConfig接口
12+if not ReqBody or type(ReqBody.PreloadPortCount) ~= 'number' then
13+ return
14+end
15+ 
12if ProcessingFlow[3].Destination == nil or ProcessingFlow[3].Destination.Path == '' then16if ProcessingFlow[3].Destination == nil or ProcessingFlow[3].Destination.Path == '' then
13 error(custom_messages.PropertyModificationNotSupported('PreloadPortCount'))17 error(custom_messages.PropertyModificationNotSupported('PreloadPortCount'))
14end18end