Element time component modification is not updated

Many methods on the Internet can't work, nonsense, just solve it perfectly like this

<el-date-picker
                style="width:400px;"
                v-model="formData.answers.time"
                @input="daterangeChange"
                value-format="yyyy-MM-dd HH:mm:ss"
                type="datetimerange"
                range-separator="至"
                start-placeholder="开始日期"
                end-placeholder="结束日期"
            ></el-date-picker>


daterangeChange(e) {
    
    
      let _this = this
      _this.$nextTick(() => {
    
    
        _this.$forceUpdate()
      })
    },

Scan the QR code to view 1000+ iT interview questions

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_42981560/article/details/111691309