Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
FuLiMini
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangjian
FuLiMini
Commits
1d614500
Commit
1d614500
authored
Apr 26, 2022
by
wangjian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
f4a343b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
net.js
common/net.js
+2
-2
login.vue
pagesA/login/login.vue
+2
-2
selectAccount.vue
pagesA/selectAccount/selectAccount.vue
+1
-1
No files found.
common/net.js
View file @
1d614500
...
...
@@ -17,7 +17,7 @@ export function post (url, params) {
header
:
headerCom
(
params
),
data
:
newParams
,
success
(
res
)
{
if
(
res
.
data
.
code
==
301
&&
p
arams
.
refreshToken
!==
'not'
)
{
if
(
res
.
data
.
code
==
301
&&
newP
arams
.
refreshToken
!==
'not'
)
{
tokenSave
(
''
)
store
.
commit
(
'refreshUserInfo'
,
{})
router
.
push
(
'AlertToLogin'
,
{
'message'
:
res
.
message
||
'未知错误'
})
...
...
@@ -61,7 +61,7 @@ export function get (url, params) {
header
:
headerCom
(
params
),
data
:
newParams
,
success
(
res
)
{
if
(
res
.
data
.
code
==
301
&&
p
arams
.
refreshToken
!==
'not'
)
{
if
(
res
.
data
.
code
==
301
&&
newP
arams
.
refreshToken
!==
'not'
)
{
tokenSave
(
''
)
store
.
commit
(
'refreshUserInfo'
,
{})
router
.
push
(
'AlertToLogin'
,
{
'message'
:
res
.
message
||
'未知错误'
})
...
...
pagesA/login/login.vue
View file @
1d614500
...
...
@@ -106,8 +106,8 @@
if
(
res
.
code
===
200
)
{
this
.
$net
.
tokenSave
(
res
.
data
.
token
||
''
)
this
.
$store
.
commit
(
'refreshUserLogin'
,
true
)
if
(
res
.
data
.
list
&&
res
.
data
.
list
.
length
>
0
)
{
this
.
$router
.
replace
(
'SelectAccount'
)
if
(
res
.
data
.
accountSwitching
!=
0
)
{
this
.
$router
.
replace
To
(
'SelectAccount'
)
}
else
{
this
.
$router
.
pop
()
}
...
...
pagesA/selectAccount/selectAccount.vue
View file @
1d614500
...
...
@@ -50,7 +50,7 @@
})
},
getAllAccount
()
{
this
.
$net
.
get
(
'/
staff
/query'
).
then
(
res
=>
{
this
.
$net
.
get
(
'/
account
/query'
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
accountList
=
this
.
accountList
.
concat
(
res
.
data
.
QueryAccountOutput
)
}
else
{
...
...
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