diff --git a/Cunkebao/app/devices/page.tsx b/Cunkebao/app/devices/page.tsx index c717b706..4a5e3a4d 100644 --- a/Cunkebao/app/devices/page.tsx +++ b/Cunkebao/app/devices/page.tsx @@ -559,14 +559,6 @@ export default function DevicesPage() { return; } - let target = event.target as HTMLElement; - while (target && target !== event.currentTarget) { - if (target.classList.contains('imei-display-area')) { - return; - } - target = target.parentElement as HTMLElement; - } - router.push(`/devices/${deviceId}`); } @@ -715,9 +707,8 @@ export default function DevicesPage() { {device.status === "online" ? "在线" : "离线"} -
- IMEI: - +
+ IMEI: {device.imei}
微信号: {device.wechatId || "未绑定或微信离线"}
diff --git a/Server/application/cunkebao/config/route.php b/Server/application/cunkebao/config/route.php index 43a658b7..b2efda2f 100644 --- a/Server/application/cunkebao/config/route.php +++ b/Server/application/cunkebao/config/route.php @@ -12,6 +12,7 @@ Route::group('v1/', function () { Route::put('refresh', 'app\cunkebao\controller\device\RefreshDeviceDetailV1Controller@index'); Route::get('add-results', 'app\cunkebao\controller\device\GetAddResultedV1Controller@index'); Route::post('task-config', 'app\cunkebao\controller\device\UpdateDeviceTaskConfigV1Controller@index'); + Route::get(':id/task-config', 'app\cunkebao\controller\device\UpdateDeviceTaskConfigV1Controller@index'); Route::get(':id/handle-logs', 'app\cunkebao\controller\device\GetDeviceHandleLogsV1Controller@index'); Route::get(':id', 'app\cunkebao\controller\device\GetDeviceDetailV1Controller@index'); Route::delete(':id', 'app\cunkebao\controller\device\DeleteDeviceV1Controller@index');