| | |
| | | removeCookie('navTabId') |
| | | removeCookie('usertype') |
| | | removeCookie('userid') |
| | | removeCookie('rediskey') |
| | | removeCookie('code') |
| | | setTimeout(() => { |
| | | sessionStorage.removeItem('tabViews') |
| | | window.location.reload() |
| | | }, 1000 * 2) |
| | | removeCookie('guid') |
| | | |
| | | if (getCookie('cloud')) { |
| | | removeCookie('cloud') |
| | | setTimeout(() => { |
| | | sessionStorage.removeItem('tabViews') |
| | | window.location.href = 'http://182.61.13.206/choose' |
| | | }, 1000 * 2) |
| | | } else { |
| | | setTimeout(() => { |
| | | sessionStorage.removeItem('tabViews') |
| | | window.location.reload() |
| | | }, 1000 * 2) |
| | | } |
| | | } |
| | | // 50008: Illegal token; 50012: Other clients logged in; 50014: Token expired; |
| | | // if (res.code === 50008 || res.code === 50012 || res.code === 50014) { |
| | |
| | | // }) |
| | | // }) |
| | | // } |
| | | store.state.app.buttonIsDisabled = false // 将按钮变回可点击 |
| | | return Promise.reject(new Error(res.message || 'Error')) |
| | | } |
| | | // else if (res.code === '303') { |