Browse Source

修改不兼容at方法

master
邓宏 1 year ago
parent
commit
7e564074af
  1. 1
      pages/massif/plant_plan.vue
  2. 2
      uni_modules/d-form/components/d-form/d-form.vue

1
pages/massif/plant_plan.vue

@ -119,7 +119,6 @@ export default {
}
},
submit(){
console.log(this.formData,'----formData-----')
this.$refs.form.validate().then(async valid=>{
if(valid){
var res=await request("/api/plantPlan/add",{

2
uni_modules/d-form/components/d-form/d-form.vue

@ -578,7 +578,7 @@ import {computeArea} from '@/common/utils'
pickerContent(){//
if(this.type=='select'){
var column=this.$defineArray(setPickerVal(this.columns[0], this.value).filter(v=>v));
return this.showValue(column)||column.at(-1)?.label||this.placeholder||`请选择${this.labelName}`
return this.showValue(column)||column.slice(-1)[0]?.label||this.placeholder||`请选择${this.labelName}`
}
return ''
},

Loading…
Cancel
Save