|
|
@@ -393,12 +393,12 @@ const convertImageToBase64 = async () => {
|
|
393
|
393
|
// 登录接口
|
|
394
|
394
|
try {
|
|
395
|
395
|
let postData = {
|
|
396
|
|
- username: "123456",
|
|
397
|
|
- password: "123456",
|
|
|
396
|
+ username: "dexnui",
|
|
|
397
|
+ password: "dexn1001",
|
|
398
|
398
|
rememberMe: 1,
|
|
399
|
399
|
};
|
|
400
|
400
|
if (localStorage.getItem("Authorization") == null) {
|
|
401
|
|
- let { data: res } = await axios.post(`https://esos-iot.bjdexn.cn/auth/login`, postData);
|
|
|
401
|
+ let { data: res } = await axios.post(`https://www.bjdexn.cn:8443/auth/login`, postData);
|
|
402
|
402
|
|
|
403
|
403
|
localStorage.setItem("Authorization", res.msg);
|
|
404
|
404
|
}
|
|
|
@@ -407,6 +407,7 @@ const convertImageToBase64 = async () => {
|
|
407
|
407
|
} else if (fontSize(1) < 1.7) {
|
|
408
|
408
|
domImg.value = imgDara15;
|
|
409
|
409
|
} else if (fontSize(1) <= 2) {
|
|
|
410
|
+
|
|
410
|
411
|
domImg.value = imgDara2;
|
|
411
|
412
|
}
|
|
412
|
413
|
await gatstations(0, 100000);
|
|
|
@@ -423,7 +424,7 @@ const gatstations = async (level, provinceAdcode) => {
|
|
423
|
424
|
`https://esos-iot.bjdexn.cn/api/v1/stations/1/${provinceAdcode}?level=${level}&page=1&rows=100000`,
|
|
424
|
425
|
{
|
|
425
|
426
|
headers: {
|
|
426
|
|
- Authorization: `Bearer ${accessToken}`,
|
|
|
427
|
+ Authorization: `JWT ${accessToken}`,
|
|
427
|
428
|
},
|
|
428
|
429
|
}
|
|
429
|
430
|
);
|