Commit 8afd899cf0222fabf1b00f67221a7ebf66c75140

Authored by fengwotao
1 parent 9d18c193

fix(src/hooks/external): 修复先拖一个实时折线图绑定ws,在拖一个折线图动画绑定http,图表都变成ws请求问题

... ... @@ -117,8 +117,10 @@ export const useChartDataFetch = (
117 117 * 如果是分组并且绑定了ws
118 118 */
119 119 chartEditStore.componentList.forEach((item:CreateComponentType | CreateComponentGroupType)=>{
120   - if(item.request.requestUrl?.includes('ws')){
121   - initial(item, useChartEditStore, updateCallback)
  120 + if(item.isGroup){
  121 + if(item.request.requestUrl?.includes('ws')){
  122 + initial(item, useChartEditStore, updateCallback)
  123 + }
122 124 }
123 125 })
124 126 //
... ...