BUG 26225

This commit is contained in:
aixianling
2021-12-31 10:59:51 +08:00
parent 99f84a7ff2
commit 5ac5516c84
2 changed files with 8 additions and 9 deletions

View File

@@ -192,11 +192,6 @@ export default {
} }
}) })
}, },
onShow () {
localStorage.removeItem("toFiledConfig")
},
methods: { methods: {
toSetting() { toSetting() {
let {formConfig} = this let {formConfig} = this

View File

@@ -146,9 +146,13 @@ import {components} from './components/config'
export default { export default {
data() { data() {
let params = localStorage.getItem("toFiledConfig") let params = localStorage.getItem("toFiledConfig") || {}
if (params) {
params && (params = JSON.parse(params)) params && (params = JSON.parse(params))
params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0] params.config = params.index > -1 ? params.filed : JSON.parse(JSON.stringify(components.filter(v => v.type === params.filedType)[0]))
localStorage.removeItem("toFiledConfig")
console.log(params)
}
return { return {
...params, ...params,
isShowType: false, isShowType: false,