diff --git a/src/utils/request.js b/src/utils/request.js index 4c94fa7..dccf2c9 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -36,6 +36,7 @@ axios.interceptors.response.use( // window.location.href = // "http://220.191.238.50:996/api/login?returnURL=" + // window.location.href; + router.replace({ path: '/guide' }); diff --git a/src/view/guide.vue b/src/view/guide.vue index 24a1c46..04dd950 100644 --- a/src/view/guide.vue +++ b/src/view/guide.vue @@ -159,8 +159,8 @@ const login = () => { }) .catch((err) => { console.log(err); - // var token = getCookie("lytoken"); - var token = '6b0e380b4a8f46baae4923f83faf670d'; + var token = getCookie("lytoken"); + // var token = '6b0e380b4a8f46baae4923f83faf670d'; // console.log('token', token) if (!token) { window.location.href =