|
@@ -11,7 +11,7 @@ export default new Vuex.Store({
|
|
|
ssoToken: 'admin:liujiandong',
|
|
|
// ssoToken: '',
|
|
|
// ssoToken: null,
|
|
|
- plazaName: "",
|
|
|
+ plazaName: '',
|
|
|
isPreview: false,
|
|
|
lastRoute: '',
|
|
|
isrequestAuth: null, // 是否请求登录校验接口
|
|
@@ -98,7 +98,7 @@ export default new Vuex.Store({
|
|
|
// state.userInfo.orgCode = palyload.orgCode
|
|
|
// state.userInfo.username = palyload.username
|
|
|
// TODO: 设置用户名
|
|
|
- if (palyload.username){
|
|
|
+ if (palyload.username) {
|
|
|
state.userInfo.username = palyload.username
|
|
|
}
|
|
|
},
|
|
@@ -209,9 +209,12 @@ export default new Vuex.Store({
|
|
|
commit('SETPLAZENAME', data.plazaName)
|
|
|
localStorage.setItem('PLAZAID', data.plazaId)
|
|
|
commit('STOREPLAZAID', data.plazaId)
|
|
|
- router.push({
|
|
|
- path: './home/homepage',
|
|
|
- })
|
|
|
+ // TODO: 1.默认跳转到项目概览,如果是从项目首页刷新而来,进入项目首页
|
|
|
+ if (window.location.href.indexOf('home/homepage') !== -1) {
|
|
|
+ router.push({ path: './home/homepage' })
|
|
|
+ } else {
|
|
|
+ router.push({ path: './home/overview' })
|
|
|
+ }
|
|
|
} else {
|
|
|
if (level == 0) {
|
|
|
if (res.treeData[0].ccode) {
|