|
@@ -12,9 +12,13 @@ const browserInfo = browser();
|
|
|
const request = extend({
|
|
|
requestType: "form",
|
|
|
timeout: 10000,
|
|
|
+ //prefix: 'https://www.baidu.com',
|
|
|
+ credentials: 'omit'
|
|
|
});
|
|
|
-// request.extendOptions({ prefix: 'https://dev.lexiaoya.cn'})
|
|
|
-
|
|
|
+const domainUrl = location.origin + storeData.platformApi
|
|
|
+if (!import.meta.env.DEV) {
|
|
|
+ request.extendOptions({ prefix: domainUrl})
|
|
|
+}
|
|
|
request.interceptors.request.use(
|
|
|
(url, options) => {
|
|
|
// console.log(9999,storeData.proxy,storeData.platformApi,options)
|
|
@@ -31,7 +35,7 @@ request.interceptors.request.use(
|
|
|
if (Authorization && !options.isContentCenter) {
|
|
|
authHeaders.Authorization = Authorization;
|
|
|
}
|
|
|
-
|
|
|
+ console.log(6666,_prefix + url)
|
|
|
return {
|
|
|
url: _prefix + url,
|
|
|
options: {
|