0
点赞
收藏
分享

微信扫一扫

JS中常用的数组拷贝技巧

覃榜言 2023-08-06 阅读 34

el-date-picker回显问题记录

 				<el-date-picker
   				  v-model="time"
                  type="datetimerange"
                  range-separator="至"
                  start-placeholder="开始日期"
                  end-placeholder="结束日期"
                  value-format="yyyy-MM-dd HH:mm:ss"
                  :default-time="['00:00:00', '23:59:59']"
                  style="margin-left: 10px"
                  @change="handleChangeTime"
                />
async getData() {
      const id = this.params.id
      await queryCouponInfo(id).then(res => {
        const response = res.data
        this.time[0] = response.startTime || ''
        this.time[1] = response.endTime || ''
      }).finally(() => {
      })
    },
async getData() {
      const id = this.params.id
      await queryCouponInfo(id).then(res => {
        const response = res.data
        this.time = [response.startTime || '', response.endTime || '']
      }).finally(() => {
      })
    },
举报

相关推荐

0 条评论