* fetch ({payload}, {call, put}) {
const response = yield call(querySignal, payload);
console.log("res", response.data[0].signal)
for (let i=0; i<response.data.length; iPP) {
for (let j=0; j<response.data[i].signal.length; jPP) {
const variety1 = response.data[i].signal[j][1]
const variety2 = response.data[i].signal[j+1][1]
if (variety1 == "[] " && variety2 == "[] " ||
variety1 == "[] " && variety2 == "[] "){
const signal = []
response.data[i].signal[j]=
signal.concat(" ",response.data[i].signal[j][0],"--",
response.data[i].signal[j+1][0]," ")
response.data[i].signal.splice(j+1, 1)
console.log("response", response)
}
}
}
yield put({
type: "save",
payload: response,
});
},
after processing, only one piece of data has been processed successfully, and the other data has not changed. What is this all about?