|
@@ -26,7 +26,7 @@ export default {
|
|
|
},
|
|
|
projectId: 'Pj1101051029',
|
|
|
group_code: '',
|
|
|
- projects: project["14"],
|
|
|
+ projects: project["39"],
|
|
|
breadcrumb: [],
|
|
|
uploaderList: [], //当前上传文件列表
|
|
|
secret: "saga123456", //项目密码
|
|
@@ -79,7 +79,7 @@ export default {
|
|
|
setSidebarSelected: (state, val) => {
|
|
|
state.sidebarSelected = val
|
|
|
storage.set(KEY_MENU_SELECTED, val)
|
|
|
- lStorage.set('screen_data', {path: val, data: {}})
|
|
|
+ lStorage.set('screen_data', { path: val, data: {} })
|
|
|
},
|
|
|
setprojectId: (state, val) => {
|
|
|
lStorage.remove('cacheInfo') //待删除(删除用户浏览器无用缓存)
|
|
@@ -116,14 +116,14 @@ export default {
|
|
|
setErrorReport(contentx, value) {
|
|
|
contentx.commit('setErrorReport', value)
|
|
|
},
|
|
|
- loadUserInfo({state}) {
|
|
|
+ loadUserInfo({ state }) {
|
|
|
console.log(state)
|
|
|
// 获取 userInfo 信息
|
|
|
return new Promise((resolve, reject) => {
|
|
|
frameworkApi.loadUserInfo().then(resp => {
|
|
|
console.log(resp)
|
|
|
if (resp.Result == 'success' && resp.UserId) {
|
|
|
- state.userInfo = {userName: resp.Username, userId: resp.UserId}
|
|
|
+ state.userInfo = { userName: resp.Username, userId: resp.UserId }
|
|
|
state.userId = resp.UserId
|
|
|
storage.set('user_name', resp.Username)
|
|
|
storage.set('user_id', resp.UserId)
|
|
@@ -156,7 +156,7 @@ export default {
|
|
|
},
|
|
|
setBreadcrumb: {
|
|
|
root: true,
|
|
|
- handler({state, commit}, val) {
|
|
|
+ handler({ state, commit }, val) {
|
|
|
let label = val[0].label;
|
|
|
if (label === "消息中心") {
|
|
|
commit("setSidebarSelected", "message"); // 当进入消息中心页面的时候不选中导航栏
|