修改传参的问题

This commit is contained in:
2025-09-22 14:57:20 +08:00
parent 76746682fa
commit 195a6d7c48

View File

@@ -60,7 +60,7 @@ Page({
},
async changeStartStatus(e) {
const that = this;
const { id, routeId } = e.currentTarget.dataset;
const { id, routeid: routeId } = e.currentTarget.dataset;
const { code, message } = await changeMeterRouteStatus({ id, status: 1, routeId })
if (code !== OK) {
alertError(message)
@@ -73,7 +73,7 @@ Page({
}, 500)
},
async changeEndStatus(e) {
const { id, routeId } = e.currentTarget.dataset;
const { id, routeid: routeId } = e.currentTarget.dataset;
const { code, message } = await changeMeterRouteStatus({ id, status: 0, routeId })
if (code !== OK) {
alertError(message)