修改接口相关

This commit is contained in:
huangchenhao 2025-11-04 10:14:46 +08:00
parent 5c292912fe
commit b6a616e51f

View File

@ -305,6 +305,9 @@ const getDetailData = async (row) => {
url: `/api/yjsb/${row.rid}`, url: `/api/yjsb/${row.rid}`,
method: 'GET', method: 'GET',
}); });
if (!res || res.code !== '00000') {
throw new Error('获取物资详情失败')
}
if (res.code === '00000') { if (res.code === '00000') {
if (dialogType.value === 'detail') { if (dialogType.value === 'detail') {
model.title = `设备详情`; model.title = `设备详情`;