Commit 8291a164 authored by 高宇's avatar 高宇

删除菜单

parent 26a77c75
import user from "@/store/modules/user";
const getters = { const getters = {
applicationform: state => state.user.applicationform,
sidebar: state => state.app.sidebar, sidebar: state => state.app.sidebar,
device: state => state.app.device, device: state => state.app.device,
token: state => state.user.token, token: state => state.user.token,
......
...@@ -114,13 +114,13 @@ export default { ...@@ -114,13 +114,13 @@ export default {
// 路由跳转,是存储页面的值 // 路由跳转,是存储页面的值
beforeRouteLeave(to, from, next) { beforeRouteLeave(to, from, next) {
console.log('form') console.log('form')
localStorage.setItem('form', JSON.stringify(this.form)) sessionStorage.setItem('applicationForm', JSON.stringify(this.form))
next() next()
}, },
created() { created() {
localStorage.getItem('form') ? this.exist = true : this.exist = false sessionStorage.getItem('applicationForm') ? this.exist = true : this.exist = false
if (this.exist) { if (this.exist) {
this.form = JSON.parse(localStorage.getItem('form')) this.form = JSON.parse(sessionStorage.getItem('applicationForm'))
} }
this.init() this.init()
}, },
......
...@@ -73,6 +73,7 @@ export default { ...@@ -73,6 +73,7 @@ export default {
name: 'Login', name: 'Login',
data() { data() {
return { return {
exist: false,
reLocation: '', reLocation: '',
codeUrl: '', codeUrl: '',
cookiePassword: '', cookiePassword: '',
......
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 to comment