Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
activities
/
web-questionnaire
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a7bbd97
authored
Feb 25, 2025
by
陆志强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修复登录相关问题
parent
2ad6f63e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
public/index.html
+1
-0
src/plugins/UserAction/login.js
+3
-2
No files found.
public/index.html
View file @
5a7bbd97
...
...
@@ -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>
...
...
src/plugins/UserAction/login.js
View file @
5a7bbd97
...
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment