From ca9b5d4118f4c29119359503859fa953495496e9 Mon Sep 17 00:00:00 2001 From: yuyu <1981343953@qq.com> Date: 星期四, 03 八月 2023 13:23:39 +0800 Subject: [PATCH] 成品检验,过程检验页面和技术文件模态框 --- 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