fix online client bug

This commit is contained in:
2026-02-25 21:16:55 +08:00
parent 7e1fc83891
commit 8950b56476
5 changed files with 15 additions and 4 deletions

View File

@@ -510,7 +510,8 @@
if (dev && dev.uuid) {
try {
const EDA_HOST = eda.sys_Environment.isClient() ? 'https://client' : 'https://pro.lceda.cn';
const EDA_HOST =
eda.sys_Environment.isClient() && !eda.sys_Environment.isOnlineMode() ? 'https://client' : 'https://pro.lceda.cn';
const infoRes = await eda.sys_ClientUrl.request(EDA_HOST + '/api/v2/devices/' + dev.uuid, 'GET', null, {
headers: { path: '0819f05c4eef4c71ace90d822a990e87' },
});