This commit is contained in:
yanran200730
2021-12-30 13:53:05 +08:00
parent 03a01aaf0e
commit c91df9daf5
3 changed files with 14 additions and 10 deletions

View File

@@ -148,12 +148,11 @@ export default {
data() {
let params = localStorage.getItem("toFiledConfig")
params && (params = JSON.parse(params))
localStorage.removeItem("toFiledConfig")
params.config = params.index > -1 ? params.filed : components?.filter(v => v.type === params.filedType)?.[0] || {}
params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0]
return {
...params,
isShowType: false,
isShowAnswer: false,
isShowAnswer: false
}
},
computed: {
@@ -251,7 +250,7 @@ export default {
this.config.options.splice(index, 1)
},
back() {
back() {
uni.navigateBack({})
},