how does the nuxt project use the router.push () method in plug-in axios route interception?
$axios.interceptors.response.use(
(response) => {
if (response.data.code === 401) {
Cookie.remove("token");
Cookie.remove("username");
Cookie.remove("login");
Router.push("/users/login");
}
return response;
},
);
in this way, router will report an error. How can I correct it?