作者 RuoYi

升级jsencrypt到最新版本3.2.1

@@ -47,7 +47,7 @@ @@ -47,7 +47,7 @@
47 "highlight.js": "9.18.5", 47 "highlight.js": "9.18.5",
48 "js-beautify": "1.13.0", 48 "js-beautify": "1.13.0",
49 "js-cookie": "2.2.1", 49 "js-cookie": "2.2.1",
50 - "jsencrypt": "3.0.0-rc.1", 50 + "jsencrypt": "3.2.1",
51 "nprogress": "0.2.0", 51 "nprogress": "0.2.0",
52 "quill": "1.3.7", 52 "quill": "1.3.7",
53 "screenfull": "5.0.2", 53 "screenfull": "5.0.2",
@@ -48,19 +48,16 @@ service.interceptors.response.use(res => { @@ -48,19 +48,16 @@ service.interceptors.response.use(res => {
48 return res.data 48 return res.data
49 } 49 }
50 if (code === 401) { 50 if (code === 401) {
51 - let doms = document.getElementsByClassName('el-message-box')[0]  
52 - if(doms === undefined){  
53 - MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { 51 + MessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', {
54 confirmButtonText: '重新登录', 52 confirmButtonText: '重新登录',
55 cancelButtonText: '取消', 53 cancelButtonText: '取消',
56 type: 'warning' 54 type: 'warning'
57 } 55 }
58 - ).then(() => {  
59 - store.dispatch('LogOut').then(() => {  
60 - location.href = '/index';  
61 - })  
62 - }).catch(() => {});  
63 - } 56 + ).then(() => {
  57 + store.dispatch('LogOut').then(() => {
  58 + location.href = '/index';
  59 + })
  60 + }).catch(() => {});
64 return Promise.reject('无效的会话,或者会话已过期,请重新登录。') 61 return Promise.reject('无效的会话,或者会话已过期,请重新登录。')
65 } else if (code === 500) { 62 } else if (code === 500) {
66 Message({ 63 Message({