Commit c8f43318fef6ddab983bdeb636606c4d95159ba0

Authored by xp.Huang
2 parents f10a80cc 609935c6

Merge branch 'ww' into 'main'

fix: BUG in teambition

See merge request huang/yun-teng-iot-front!416
... ... @@ -14,9 +14,9 @@ VITE_PUBLIC_PATH = /
14 14 # VITE_PROXY = [["/api","http://101.133.234.90:8080/api"]]
15 15 # 线上测试环境
16 16 # VITE_PROXY = [["/api","http://localhost:8080/api"],["/thingskit-drawio","http://localhost:3000/"]]
17   -# VITE_PROXY = [["/api","http://222.180.200.114:48080/api"],["/thingskit-drawio","http://localhost:3000/"]]
  17 +VITE_PROXY = [["/api","http://222.180.200.114:48080/api"],["/thingskit-drawio","http://localhost:3000/"]]
18 18 # VITE_PROXY = [["/api","http://121.37.251.8:8080/api"],["/thingskit-drawio","http://localhost:3000/"]]
19   -VITE_PROXY = [["/api","http://192.168.10.114:8080/api"],["/thingskit-drawio","http://192.168.10.136:8080/api"]]
  19 +# VITE_PROXY = [["/api","http://192.168.10.103:8080/api"],["/thingskit-drawio","http://192.168.10.136:8080/api"]]
20 20
21 21 # 实时数据的ws地址
22 22 # VITE_WEB_SOCKET = ws://localhost:8080/api/ws/plugins/telemetry?token=
... ...
... ... @@ -224,7 +224,7 @@ export const dataSourceSchema = (frontId?: FrontComponent): FormSchema[] => {
224 224 if (data)
225 225 return data.map((item) => ({
226 226 ...item,
227   - label: item.name,
  227 + label: item.alias || item.name,
228 228 value: item.id,
229 229 deviceType: item.deviceType,
230 230 }));
... ... @@ -232,7 +232,6 @@ export const dataSourceSchema = (frontId?: FrontComponent): FormSchema[] => {
232 232 }
233 233 return [];
234 234 },
235   -
236 235 onChange(_value, record: MasterDeviceList) {
237 236 setFieldsValue({
238 237 [DataSourceField.DEVICE_NAME]: record?.label,
... ...