Commit 50921633 by 展昭

vuex中添加oidc

parent a78ef779
Showing with 11 additions and 11 deletions
...@@ -55,16 +55,16 @@ export default new Vuex.Store({ ...@@ -55,16 +55,16 @@ export default new Vuex.Store({
token, token,
any, any,
more, more,
// oidc: vuexOidcCreateStoreModule(oidcSettings, oidc: vuexOidcCreateStoreModule(oidcSettings,
// { {
// isAuthenticatedBy: 'access_token', isAuthenticatedBy: 'access_token',
// dispatchEventsOnWindow: true dispatchEventsOnWindow: true
// }, { }, {
// userLoaded: async (user) => { userLoaded: async (user) => {
// const appid = localStorage.getItem('appid'); const appid = localStorage.getItem('appid');
// console.log('user.access_token=',user.access_token); console.log('user.access_token=',user.access_token);
// await getToken(user.access_token, appid); await getToken(user.access_token, appid);
// } }
// }) })
} }
}); });
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment