mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
个人主页关注,跳转到指定tab
This commit is contained in:
@@ -11,7 +11,6 @@ const getters = {
|
||||
orgId: state => state.user.orgId,
|
||||
permissions: state => state.user.permissions,
|
||||
identity: state => state.user.identity,
|
||||
attention: state => state.user.attention,
|
||||
intTimeNote: state => state.user.intTimeNote,
|
||||
curIdentity: state => state.user.curIdentity,
|
||||
permission_routes: state => state.permission.routes,
|
||||
|
||||
@@ -17,7 +17,6 @@ const user = {
|
||||
curIdentity: sessionStorage.getItem("curIdentity") == null ? 1 : sessionStorage.getItem("curIdentity"), // 用户当前选择的身份 1学员 2教师 3管理员
|
||||
permissions: [],
|
||||
intTimeNote:0,
|
||||
attention:false,
|
||||
},
|
||||
mutations: {
|
||||
SET_IntTimeNote: (state, u) => {
|
||||
@@ -45,15 +44,8 @@ const user = {
|
||||
SET_PERMISSIONS: (state, permissions) => {
|
||||
state.permissions = permissions
|
||||
},
|
||||
SET_Attention: (state, m)=>{
|
||||
state.attention = m
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
// /用户触发事件
|
||||
setAttention({ commit }, iden) {
|
||||
commit('SET_Attention', iden);
|
||||
},
|
||||
// /用户触发事件
|
||||
userTrigger({ commit }, event) {
|
||||
event.source='page';
|
||||
|
||||
Reference in New Issue
Block a user