|
@@ -47,14 +47,13 @@ router.beforeEach((to, from, next) => {
|
|
|
if (localStorage.getItem('accessToken') === null) {
|
|
|
removeToken() //不用管
|
|
|
|
|
|
- next({ path: '/' })
|
|
|
- // if (window.location.host.indexOf("localhost") != -1) {
|
|
|
- // next({ path: '/' })
|
|
|
- // } else if (window.location.host.indexOf("pcdev.ewoogi.com") != -1) {
|
|
|
- // window.location.href = 'https://pcdev.ewoogi.com/adminfiv/#/login'
|
|
|
- // } else {
|
|
|
- // window.location.href = 'https://wx.ewoogi.com/manage/#/login'
|
|
|
- // }
|
|
|
+ if (window.location.host.indexOf("localhost") != -1) {
|
|
|
+ next({ path: '/' })
|
|
|
+ // } else if (window.location.host.indexOf("pcdev.ewoogi.com") != -1) {
|
|
|
+ // window.location.href = 'https://pcdev.ewoogi.com/adminfiv/#/login'
|
|
|
+ } else {
|
|
|
+ window.location.href = 'http://101.133.214.75:13201/backStage'
|
|
|
+ }
|
|
|
|
|
|
document.getElementById('routers').style.display = "none"
|
|
|
|