Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
杨硕
template_vue
Commits
8291a164
Commit
8291a164
authored
Aug 07, 2023
by
高宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除菜单
parent
26a77c75
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
getters.js
src/store/getters.js
+3
-0
application.vue
src/views/equipment/application.vue
+3
-3
login.vue
src/views/login/login.vue
+1
-0
No files found.
src/store/getters.js
View file @
8291a164
import
user
from
"@/store/modules/user"
;
const
getters
=
{
applicationform
:
state
=>
state
.
user
.
applicationform
,
sidebar
:
state
=>
state
.
app
.
sidebar
,
device
:
state
=>
state
.
app
.
device
,
token
:
state
=>
state
.
user
.
token
,
...
...
src/views/equipment/application.vue
View file @
8291a164
...
...
@@ -114,13 +114,13 @@ export default {
// 路由跳转,是存储页面的值
beforeRouteLeave
(
to
,
from
,
next
)
{
console
.
log
(
'form'
)
localStorage
.
setItem
(
'f
orm'
,
JSON
.
stringify
(
this
.
form
))
sessionStorage
.
setItem
(
'applicationF
orm'
,
JSON
.
stringify
(
this
.
form
))
next
()
},
created
()
{
localStorage
.
getItem
(
'f
orm'
)
?
this
.
exist
=
true
:
this
.
exist
=
false
sessionStorage
.
getItem
(
'applicationF
orm'
)
?
this
.
exist
=
true
:
this
.
exist
=
false
if
(
this
.
exist
)
{
this
.
form
=
JSON
.
parse
(
localStorage
.
getItem
(
'f
orm'
))
this
.
form
=
JSON
.
parse
(
sessionStorage
.
getItem
(
'applicationF
orm'
))
}
this
.
init
()
},
...
...
src/views/login/login.vue
View file @
8291a164
...
...
@@ -73,6 +73,7 @@ export default {
name
:
'Login'
,
data
()
{
return
{
exist
:
false
,
reLocation
:
''
,
codeUrl
:
''
,
cookiePassword
:
''
,
...
...
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