page redirection post login

below is vue.js2 code when user tries to login with credentials it should redirect to the dashboard view, however it does not get redirect even provided correct credentials:
and says can not rout to same page.

if (username && password) {
       const payload = { username, password };
       this.$store.dispatch(LOGIN,payload)
       .then((resp)=>{
         if(resp && resp.data.message==="Welcome" ) {
            this.error=false;
            console.log(this.$route.query)  // here it returns {} object
           this.$router.push(this.$route.query.redirect || "/");
         }
       })
        .catch(err => {
          this.error=true;
        console.log(err);
        });

EDIT Action LOGIN

[LOGIN]({commit}, payload) {
       // LOGIN user
        return loginService.LoginUser(payload).then(res => {
            const token = res.data.token;
            const user = res.data.userName
            localStorage.setItem('user', token)
            localStorage.setItem('token',user)
           //  axios.defaults.headers.common['Authorization'] = token
            commit(AUTH_SUCCESS, token,user);
            return res;
        }).catch(error => {
            commit(AUTH_ERROR, error);
            localStorage.removeItem('token')
            localStorage.setItem('token',user)
        });
    },

//EDIT…ERROR

host-report-errors.js?44de:6 Unhandled promise rejection NavigationDuplicated {_name: "NavigationDuplicated", name: "NavigationDuplicated", message: "Navigating to current location ("/pages/login") is not allowed", stack: "Error↵    at new NavigationDuplicated (webpack-int…al:///./node_modules/vue/dist/vue.esm.js:1862:57)"}