|
@@ -6,9 +6,11 @@ import { storeData } from "../store";
|
|
|
import { browser, getToken } from ".";
|
|
|
import { postMessage } from "./native-message";
|
|
|
import { matchProductApiUrl } from "./index"
|
|
|
+import { getQuery } from "/src/utils/queryString";
|
|
|
|
|
|
const apiRouter = whiteUrl();
|
|
|
const browserInfo = browser();
|
|
|
+const query = getQuery();
|
|
|
|
|
|
const request = extend({
|
|
|
requestType: "form",
|
|
@@ -17,10 +19,11 @@ const request = extend({
|
|
|
credentials: 'omit'
|
|
|
});
|
|
|
// 返回各应用实际的接口api地址
|
|
|
-const domainUrl = matchProductApiUrl() + storeData.platformApi
|
|
|
+const domainUrl = matchProductApiUrl()
|
|
|
if (!import.meta.env.DEV) {
|
|
|
request.extendOptions({ prefix: domainUrl})
|
|
|
}
|
|
|
+console.log('api地址',domainUrl)
|
|
|
request.interceptors.request.use(
|
|
|
(url, options) => {
|
|
|
// console.log(9999,storeData.proxy,storeData.platformApi,options)
|