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

删除菜单

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