优化setform获取

This commit is contained in:
24kycj
2025-06-08 21:38:27 +08:00
parent 58dc962a37
commit 91e19e4780
2 changed files with 6 additions and 1 deletions
@@ -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: {
// 右键事件 // 右键事件
+1 -1
View File
@@ -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: {