BUG 26225
This commit is contained in:
		@@ -192,11 +192,6 @@ export default {
 | 
			
		||||
      }
 | 
			
		||||
    })
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  onShow () {
 | 
			
		||||
    localStorage.removeItem("toFiledConfig")
 | 
			
		||||
  },
 | 
			
		||||
 | 
			
		||||
  methods: {
 | 
			
		||||
    toSetting() {
 | 
			
		||||
      let {formConfig} = this
 | 
			
		||||
 
 | 
			
		||||
@@ -146,9 +146,13 @@ import {components} from './components/config'
 | 
			
		||||
 | 
			
		||||
export default {
 | 
			
		||||
  data() {
 | 
			
		||||
    let params = localStorage.getItem("toFiledConfig")
 | 
			
		||||
    params && (params = JSON.parse(params))
 | 
			
		||||
    params.config = params.index > -1 ? params.filed : components.filter(v => v.type === params.filedType)[0]
 | 
			
		||||
    let params = localStorage.getItem("toFiledConfig") || {}
 | 
			
		||||
    if (params) {
 | 
			
		||||
      params && (params = JSON.parse(params))
 | 
			
		||||
      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 {
 | 
			
		||||
      ...params,
 | 
			
		||||
      isShowType: false,
 | 
			
		||||
@@ -250,7 +254,7 @@ export default {
 | 
			
		||||
      this.config.options.splice(index, 1)
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
    back() {  
 | 
			
		||||
    back() {
 | 
			
		||||
      uni.navigateBack({})
 | 
			
		||||
    },
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user