优化setform获取
This commit is contained in:
@@ -514,6 +514,11 @@ export default {
|
|||||||
this.form.cd_type = JSON.parse(workForm).cd_type
|
this.form.cd_type = JSON.parse(workForm).cd_type
|
||||||
this.form.copy_type = JSON.parse(workForm).copy_type
|
this.form.copy_type = JSON.parse(workForm).copy_type
|
||||||
}
|
}
|
||||||
|
let setForm = localStorage.getItem('setForm')
|
||||||
|
if (setForm) {
|
||||||
|
this.$store.dispatch('setDatas', { name: 'setForm', data: JSON.parse(setForm) })
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
// 右键事件
|
// 右键事件
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ const user = {
|
|||||||
roles: ['admin'],
|
roles: ['admin'],
|
||||||
oneLogin: true,
|
oneLogin: true,
|
||||||
// 高级设置
|
// 高级设置
|
||||||
setForm: localStorage.getItem('setForm') ? JSON.parse(localStorage.getItem('setForm')) : setFormDefault,
|
setForm: setFormDefault,
|
||||||
},
|
},
|
||||||
|
|
||||||
mutations: {
|
mutations: {
|
||||||
|
|||||||
Reference in New Issue
Block a user