|
|
@@ -276,13 +276,15 @@ const getlogin = async () => {
|
|
276
|
276
|
`https://www.bjdexn.cn:8443/auth/login`,postData
|
|
277
|
277
|
);
|
|
278
|
278
|
if (mapdata.code==200) {
|
|
279
|
|
- if (localStorage.getItem("Authorization") == null) {
|
|
280
|
279
|
localStorage.setItem("Authorization", mapdata.msg);
|
|
281
|
280
|
getuidatas();
|
|
282
|
|
- }
|
|
|
281
|
+ // if (localStorage.getItem("Authorization") == null) {
|
|
|
282
|
+ // }
|
|
283
|
283
|
}
|
|
284
|
284
|
} catch (error) {
|
|
285
|
285
|
console.error("请求出错:", error);
|
|
|
286
|
+ getlogin();
|
|
|
287
|
+
|
|
286
|
288
|
}
|
|
287
|
289
|
};
|
|
288
|
290
|
const income = ref(null); // 充放电趋势图
|