Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
EcomWeb
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
jinhui.wang
2024-12-21 17:36:49 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
47c2cefd14497abb8b742f7988e275bee3b69dbe
47c2cefd
1 parent
c1db6f4f
无用参数删除
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
src/store/getters.js
src/store/modules/user.js
src/store/getters.js
View file @
47c2cef
...
...
@@ -8,7 +8,6 @@ const getters = {
userData
:
state
=>
state
.
user
.
userData
,
avatar
:
state
=>
state
.
user
.
avatar
,
name
:
state
=>
state
.
user
.
name
,
introduction
:
state
=>
state
.
user
.
introduction
,
roles
:
state
=>
state
.
user
.
roles
,
permissions
:
state
=>
state
.
user
.
permissions
,
permission_routes
:
state
=>
state
.
permission
.
routes
,
...
...
@@ -19,7 +18,5 @@ const getters = {
linkList
:
state
=>
state
.
user
.
linkList
,
dict
:
state
=>
state
.
user
.
dict
,
loading
:
state
=>
state
.
user
.
loading
,
editEntryId
:
state
=>
state
.
user
.
editEntryId
,
lockTime
:
state
=>
state
.
user
.
lockTime
}
export
default
getters
...
...
src/store/modules/user.js
View file @
47c2cef
...
...
@@ -10,18 +10,12 @@ const user = {
userData
:
null
,
name
:
''
,
avatar
:
''
,
lockTime
:
0
,
roles
:
[],
permissions
:
[],
linkList
:
[],
editEntryData
:
{
id
:
null
,
status
:
0
,
},
dict
:
{
DECLARE_TRAFMODE
:
[{
itemCode
:
'DECLARE_TRAFMODE_AVIATION'
,
itemChineseName
:
'航空运输'
,
itemValue
:
'5'
}]
},
dictWit
:
[
'H2000Account'
],
loading
:
{
type
:
false
,
text
:
'拼命加载中"'
...
...
@@ -57,18 +51,6 @@ const user = {
state
.
loading
.
type
=
loading
.
type
state
.
loading
.
text
=
loading
.
text
},
SET_EDITENTRYDATA
:
(
state
,
obj
)
=>
{
state
.
editEntryData
=
obj
},
DEL_EDITENTRYDATA
:
(
state
)
=>
{
state
.
editEntryData
=
{
id
:
null
,
status
:
0
,
}
},
SET_LOCKTIME
:
(
state
,
time
)
=>
{
state
.
lockTime
=
time
}
},
actions
:
{
...
...
@@ -142,7 +124,6 @@ const user = {
//退出系统
LogOut
({
commit
,
state
})
{
return
new
Promise
((
resolve
,
reject
)
=>
{
// removeEntryLock(state.editEntryData.id, state.editEntryData.status).then(() => {
logout
(
state
.
token
).
then
(()
=>
{
commit
(
'SET_TOKEN'
,
''
)
commit
(
'SET_USERDATA'
,
null
)
...
...
@@ -152,14 +133,12 @@ const user = {
}).
catch
(
error
=>
{
reject
(
error
)
})
// })
})
},
// 前端 登出
FedLogOut
({
commit
,
state
})
{
return
new
Promise
(
resolve
=>
{
// removeEntryLock(state.editEntryData.id, state.editEntryData.status).then(() => {
commit
(
'SET_TOKEN'
,
''
)
commit
(
'SET_USERDATA'
,
null
)
removeToken
()
...
...
@@ -167,7 +146,6 @@ const user = {
removeUserId
()
location
.
replace
(
process
.
env
.
VUE_APP_BASE_ROUTE
);
resolve
()
// })
})
}
}
...
...
Please
register
or
login
to post a comment