The problem of model returning data under ant design prov2.0 no-mock

1. The page begins with dispatch,
2.model effects, const response = yield call (getDeviceList);
3.api.js:

export async function getDeviceList() {
return request("/api/admin/device/list.jhtml");
}

print log found that the code executes until effects, does not go down to execute reducers.
config is configured:

proxy: {
"/api": {
target: "http://localhost:54660/",
changeOrigin: true,
pathRewrite: { "^/api" : "" },
}
},

it is strange that the F12 console can receive values from the background

Aug.10,2021

should be because of two requests. Just kill the other and then write

.
Menu