Commit 5a7bbd97 by 陆志强

feat: 修复登录相关问题

parent 2ad6f63e
......@@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta http-equiv="Cache-Control" content="no-store no-cache" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<!-- <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests" /> -->
<link href="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/config.js" rel="preload" as="script" />
<script src="<%= BASE_URL %><%= process.env.VUE_APP_ASSETS_DIR %>/config.js"></script>
......
......@@ -6,8 +6,9 @@ export default function({token, onFinished} = {token: ''}) {
const { uin } = this.$route.query
const { id } = this.$route.params
token && Cookie.set('token', token, { expires: 10 });
store._actions['users/getUerInfo'][0](uin)
store._actions['users/postInfo'][0](id)
store.dispatch('users/getUerInfo', { uin })
store.dispatch('users/postInfo', id)
window.location.reload()
onFinished && onFinished()
return this
}
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