Browse Source

2023-01-11 update

1. 调整axios 携带cookie 以解决升压站跨域问题
moccus 2 years ago
parent
commit
f2bc1042e7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/views/WindSite/components/boosterstation/BoosterStation.js

+ 1 - 1
src/views/WindSite/components/boosterstation/BoosterStation.js

@@ -2070,7 +2070,7 @@ export class BoosterStation {
 	getDatas(station, action) {
 		var currentStation = this.tags[station]
 		var tags = this.getTags(currentStation);
-
+		axios.defaults.withCredentials = true  //设定携带cookie (默认axios不携带cookie)
 		axios.get(`${config.adapterUrl}ts/latest?keys=${tags}`)
 			.then(msg => {
 				var datas = msg.data;