Router push has no effect in dva.js.

        *del({ id }, { call, put }) {
            const response = yield call(delAdvertiser, id);

            if (response.status === true) {
                message.success("");
                // yield put({
                //     type: "needRefresh",
                //     payload: true,
                // });
                yield put(routerRedux.push("/customer/advertiser/list"));
            }
            else {
                message.error("");
            }
        },

now an asynchronous delete operation, which refreshes the page after deletion. However, after using dva"s routerRedux.push, the page is not refreshed, and the page is still the original page. Is it because my push address is the same as the current address, so it is not refreshed? I can add from / edit to / list when I add. But it is not possible to delete from / list to / list.

Apr.24,2021
Menu