|
@@ -9,7 +9,7 @@ router.beforeEach(async(to, from, next) => {
|
|
console.log(response);
|
|
console.log(response);
|
|
let data = response.data.replaceAll("\'", "\"")
|
|
let data = response.data.replaceAll("\'", "\"")
|
|
if (data && JSON.parse(data).uid) {
|
|
if (data && JSON.parse(data).uid) {
|
|
- setToken(response.uid);
|
|
|
|
|
|
+ setToken(JSON.parse(data).uid);
|
|
next()
|
|
next()
|
|
} else {
|
|
} else {
|
|
window.location.href = "http://10.16.30.130/sso/caslogin.jsp";
|
|
window.location.href = "http://10.16.30.130/sso/caslogin.jsp";
|