Selaa lähdekoodia

修复get请求

hejie 3 vuotta sitten
vanhempi
sitoutus
7e45c22504
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      src/request/api.js

+ 1 - 0
src/request/api.js

@@ -6,6 +6,7 @@ export function get(url, params, baseURL) {
 		url,
 		params,
 		method: "GET",
+		header: { "Content-Type": "application/x-www-form-urlencoded" },
 		baseURL,
 	})
 }