yujialong 2 weeks ago
parent 6036ec0efd
commit a13172fa20
  1. BIN
      src/assets/img/index/customer.png
  2. 9
      src/plugins/requests/index.js
  3. 4
      src/setting.js

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 KiB

After

Width:  |  Height:  |  Size: 21 KiB

@ -27,7 +27,14 @@ function checkDisabled () {
token token
} }
}).then(res => { }).then(res => {
if (res.data) { if (res.data.code === 401) {
Util.local.remove(Setting.storeKey)
Util.local.remove(Setting.tokenKey)
Util.errorMsg(res.data.msg.includes('顶') ? '您的账号已在其他设备登录,您已被迫下线!' : '登录过期,请重新登录!')
setTimeout(() => {
location.reload()
}, 1500)
} else if (res.data) {
Util.errorMsg('账号被禁用,已强制退出,有疑问请联系管理员') Util.errorMsg('账号被禁用,已强制退出,有疑问请联系管理员')
setTimeout(() => { setTimeout(() => {
store.dispatch('user/logout') store.dispatch('user/logout')

@ -11,8 +11,8 @@ const url = location.host
const dev = process.env.NODE_ENV === 'development' // 本地 const dev = process.env.NODE_ENV === 'development' // 本地
let host = `${location.origin}/` let host = `${location.origin}/`
if (dev) { if (dev) {
// host = 'https://www.dataforward.cn/' host = 'https://www.dataforward.cn/'
host = 'http://192.168.31.51:9000/' // host = 'http://192.168.31.51:9000/'
} }
const Setting = { const Setting = {

Loading…
Cancel
Save