提交 40739631 authored 作者: huaxinzhu's avatar huaxinzhu

登录优化3

上级 68de865c
...@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth' ...@@ -7,7 +7,7 @@ import { getToken } from '@/utils/auth'
NProgress.configure({ showSpinner: false }) NProgress.configure({ showSpinner: false })
const whiteList = ['/login','/login2', '/auth-redirect', '/bind', '/register'] const whiteList = ['/login','/platformlogin', '/auth-redirect', '/bind', '/register']
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
NProgress.start() NProgress.start()
......
...@@ -70,7 +70,7 @@ service.interceptors.response.use(res => { ...@@ -70,7 +70,7 @@ service.interceptors.response.use(res => {
// }, 1000) // }, 1000)
// location.reload() // 为了重新实例化vue-router对象 避免bug // location.reload() // 为了重新实例化vue-router对象 避免bug
}) })
} else if (code === 200) { } else if (code === 200 || code === 1 ) {
return res.data return res.data
} }
}, error => { }, error => {
......
...@@ -53,9 +53,6 @@ export default { ...@@ -53,9 +53,6 @@ export default {
window.location.href='http://sso.jxhh.com/login?redirect=http://'+ssa+'/platformlogin' window.location.href='http://sso.jxhh.com/login?redirect=http://'+ssa+'/platformlogin'
} }
}, 1000) }, 1000)
// var url = "http://sso.jxhh.com/login?redirect=http://localhost:1024/login2"
// window.location.href = url
} }
}, },
// getCode() { // getCode() {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
import { getShopInf } from '@/api/module/entry'; import { getShopInf } from '@/api/module/entry';
import request from '@/utils/request' import request from '@/utils/request'
export default { export default {
name: "Login2", name: "Platformlogin",
created() { created() {
this.gotosso(); this.gotosso();
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论