Commit f7790b8f8f686279f0d394723d39f27e3047df7f

Authored by xp.Huang
2 parents 94d0ae46 a9681c4c

Merge branch 'ft' into 'main_dev'

fix(views/chart/ContentConfigurations): 修复DEFECT-1104,修复公共接口发布后选择一个,然后取消发布后,公告接口为id问题

See merge request yunteng/thingskit-view!40
... ... @@ -122,7 +122,14 @@ const setConfigurationData = async (request: ExtraRequestConfigType) => {
122 122 await getPublicInterfaceList()
123 123 const { requestDataPondId, requestParams, requestParamsBodyType, requestContentType, requestHttpType, requestIntervalUnit, requestInterval } = request
124 124 const { Header } = requestParams
125   - selectedPublicInterface.value = requestDataPondId
  125 + /**
  126 + * ft 修改
  127 + * 修改后的代码在注释之间,并标注好源代码和修改后代码,方便回溯
  128 + * 源代码 selectedPublicInterface.value = requestDataPondId
  129 + * 修改后代码 selectedPublicInterface.value = publicInterfaceList.value.find(it=>it.id === requestDataPondId)?.id||''
  130 + */
  131 + selectedPublicInterface.value = publicInterfaceList.value.find(it=>it.id === requestDataPondId)?.id||''
  132 + //ft
126 133 requestContentTypeRef.value = requestContentType
127 134 requestHttpTypeRef.value = requestHttpType
128 135 headerRef.value = Header
... ...