From 2479b946b95e57bdd959c9d43b97921fc84be37b Mon Sep 17 00:00:00 2001 From: hailin <1356886193@qq.com> Date: 星期二, 01 八月 2023 09:11:41 +0800 Subject: [PATCH] 标准库jack的第一次提交 --- src/main.js | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/main.js b/src/main.js index 24c069b..5724f71 100644 --- a/src/main.js +++ b/src/main.js @@ -20,7 +20,7 @@ Vue.use(qs); Vue.use(api); -const javaApi = 'http://localhost:8001/' +const javaApi = 'http://192.168.110.167:8001/' axios.defaults.baseURL = javaApi axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded;charset=UTF-8' @@ -89,18 +89,18 @@ }) // 璺敱鎷︽埅鍣� -router.beforeEach((to, from, next) => { - // 璺緞涓簆roduct鏃堕獙璇佹槸鍚︾櫥褰曪紝娌℃湁璺宠浆鑷崇櫥褰曢〉闈� - if (to.path.indexOf('/') > -1 && to.path.indexOf('/enter') != 0) { - if (sessionStorage.getItem('token') == null || sessionStorage.getItem('token') == '' || sessionStorage.getItem( - 'token') == undefined) { - next({ - path: '/enter' - }) - } - } - next() -}); +// router.beforeEach((to, from, next) => { +// // 璺緞涓簆roduct鏃堕獙璇佹槸鍚︾櫥褰曪紝娌℃湁璺宠浆鑷崇櫥褰曢〉闈� +// if (to.path.indexOf('/') > -1 && to.path.indexOf('/enter') != 0) { +// if (sessionStorage.getItem('token') == null || sessionStorage.getItem('token') == '' || sessionStorage.getItem( +// 'token') == undefined) { +// next({ +// path: '/enter' +// }) +// } +// } +// next() +// }); new Vue({ el: '#app', -- Gitblit v1.9.3