toTodayAlarmRecord(record, site) {
const startTime = dayjs(
`${dayjs().format("YYYY-MM-DD")} 00:00:00`
).format("YYYY-MM-DD HH:mm:ss");
const endTime = dayjs().format("YYYY-MM-DD HH:mm:ss");
this.$router.push({
path: "/home/device-abnormal-alarm",
query: { startTime, endTime },
});
},
以这个为例子,直接写在query里面即可,想传多少用,分割
标签:00,dayjs,format,url,DD,YYYY,MM,跳转,相关 From: https://www.cnblogs.com/zongkm/p/16734701.html