From acfc2f75c52fab00aecd04dc57013d0514cb42ad Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Mon, 17 Oct 2022 18:53:19 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E6=B5=8B=E8=AF=95=E6=9C=8D?= =?UTF-8?q?=E5=8A=A1=E5=99=A8=E6=8E=A5=E5=8F=A3=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anrui-buscenter/anrui-buscenter-ui/.env.development | 5 +---- anrui-buscenter/anrui-buscenter-ui/src/utils/auth.js | 6 +++--- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/anrui-buscenter/anrui-buscenter-ui/.env.development b/anrui-buscenter/anrui-buscenter-ui/.env.development index 0c8e9236c7..02f8ee89a0 100644 --- a/anrui-buscenter/anrui-buscenter-ui/.env.development +++ b/anrui-buscenter/anrui-buscenter-ui/.env.development @@ -5,8 +5,5 @@ ENV = 'development' VUE_APP_BASE_API = '/api' ## 配置测试和本地开发时的 接口地址 -####VUE_APP_URL = "http://26077a35f5.wicp.vip" -VUE_APP_URL = "http://26077a35f5.wicp.vip:25879" ##VUE_APP_URL = "http://192.168.2.44:8111" -VUE_APP_URL = "http://120.46.131.15:8111" -##VUE_APP_URL = "http://1mn7264414.qicp.vip" +VUE_APP_URL = "http://anrui.yyundong.com" diff --git a/anrui-buscenter/anrui-buscenter-ui/src/utils/auth.js b/anrui-buscenter/anrui-buscenter-ui/src/utils/auth.js index 34b5a8fc8e..5075ab8849 100644 --- a/anrui-buscenter/anrui-buscenter-ui/src/utils/auth.js +++ b/anrui-buscenter/anrui-buscenter-ui/src/utils/auth.js @@ -8,7 +8,7 @@ export function getToken() { } export function setToken(token) { - return Cookies.set(TokenKey, token, { expires: 7, path: '/' }) + return Cookies.set(TokenKey, token, {expires: 7, path: '/'}) } export function removeToken() { @@ -16,8 +16,8 @@ export function removeToken() { } export function getStorage() { - return sessionStorage.getItem('token') - // return 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI0MjdhMmZiMC02MGM1LTQwOWYtYmVhNC00ZWI0NDEwNDFhZTYiLCJpc3MiOiJXQksiLCJleHAiOjE2NTM2MTQwMjJ9.CAT-RYSdYeSIL_rDVNQsRJX4beAjU0YpKCd9uMkAL4A' + return sessionStorage.getItem('token') + // return 'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyTm8iOiI0MjdhMmZiMC02MGM1LTQwOWYtYmVhNC00ZWI0NDEwNDFhZTYiLCJpc3MiOiJXQksiLCJleHAiOjE2NTM2MTQwMjJ9.CAT-RYSdYeSIL_rDVNQsRJX4beAjU0YpKCd9uMkAL4A' } export function setStorage(session) {