前端
This commit is contained in:
parent
63ea54e1ed
commit
d046987ec3
@ -54,6 +54,10 @@ const user = {
|
||||
const uuid = userInfo.uuid
|
||||
return new Promise((resolve, reject) => {
|
||||
login(username, password, captchaCode, uuid).then(res => {
|
||||
if(res.data.token == null ){
|
||||
this.$router.push({ path: '/login' });
|
||||
return
|
||||
}
|
||||
console.log("user_58",res.data)
|
||||
|
||||
// dutyRoleCode
|
||||
|
@ -209,6 +209,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
hasOneShowingChild(children = [], parent) {
|
||||
console.log('212')
|
||||
if (!children) {
|
||||
children = [];
|
||||
}
|
||||
@ -236,6 +237,7 @@ export default {
|
||||
return false
|
||||
},
|
||||
resolvePath(routePath, routeQuery) {
|
||||
console.log('240')
|
||||
if (isExternal(routePath)) {
|
||||
return routePath
|
||||
}
|
||||
|
@ -54,11 +54,15 @@ const user = {
|
||||
const uuid = userInfo.uuid
|
||||
return new Promise((resolve, reject) => {
|
||||
login(username, password, captchaCode, uuid).then(res => {
|
||||
|
||||
if(res.data.token == null ){
|
||||
this.$router.push({ path: '/login' });
|
||||
return
|
||||
}
|
||||
|
||||
console.log("user_58",res.data)
|
||||
if (res.data.ownerId !== "3") {
|
||||
setToken(res.data.token)
|
||||
|
||||
commit('SET_TOKEN', res.data.token)
|
||||
// Cookies.remove('IS_BK_LOGIN');
|
||||
sessionStorage.removeItem('IS_BK_LOGIN');
|
||||
|
@ -286,6 +286,7 @@ export default {
|
||||
console.log("dataJSON",data)
|
||||
location.replace(this.bkUrl+"resource_oilstore?token="+data.token);
|
||||
}else {
|
||||
|
||||
app.$router.push({ path: "/Service/index" }).catch(()=>{});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user