The problem of intercepting redirected login page with VUE interface

// http response 
axios.interceptors.response.use(
    response => {
        if (response.data.code === 300) {
            router.push({
                path: "/Login",
                query: {redirect: router.currentRoute.fullPath}
            })
        }
        return response;
    },
    error => {
        return Promise.reject(error.response.data)
});

I have a page that requests multiple interfaces, and then the server returns 300
redirected links and becomes multiple http://xx.xx.com/Login?redirect=%2Fmy&Login?redirect=%2Fmy
. I want to return only one http://xx.xx.com/Login?redirect=%2Fmy

.
Feb.22,2022

use location.href

Menu