优化宇视摄像头

This commit is contained in:
zc
2026-03-23 18:02:11 +08:00
parent 33db8595ec
commit 443ee0038b
2 changed files with 186 additions and 465 deletions

View File

@@ -0,0 +1,23 @@
import http from '@/utils/http'
const BASE_URL = '/api/ys'
/** @desc 进入称重页面 */
export function getEnterWeighPage() {
return http.get<any>(`${BASE_URL}/enter-weigh-page`)
}
/** @desc 退出称重页面 */
export function getLeaveWeighPage() {
return http.get<any>(`${BASE_URL}/leave-weigh-page`)
}
/** @desc 抓拍图片 */
export function getCaptureImage(imgName: string) {
return http.get<any>(`${BASE_URL}/capture-image?imgName=${imgName}`)
}
/** @desc 检查称重状态 */
export function getCheckStatus() {
return http.get<any>(`${BASE_URL}/status`)
}