Przeglądaj źródła

refactor: 简化获取实体物联点位请求处理

yusheng 1 miesiąc temu
rodzic
commit
d005c04e9f
1 zmienionych plików z 4 dodań i 9 usunięć
  1. 4 9
      src/api/material/list.js

+ 4 - 9
src/api/material/list.js

@@ -184,12 +184,7 @@ export async function queryBindSubstanceList(data) {
 }
 // 获取实体物联点位
 export async function getPhysicalModel(id) {
-  const res = await request.get(
-    `/main/asset/getPhysicalModel/` + id,
-    {}
-  );
-  if (res.data.code == 0) {
-    return res.data.data;
-  }
-  return Promise.reject(new Error(res.data.message));
-}
+  const res = await request.get(`/main/asset/getPhysicalModel/` + id, {});
+  return res.data;
+  // return Promise.reject(new Error(res.data.message));
+}