|
@@ -11,6 +11,14 @@ export const baseURL =
|
|
|
// : "";
|
|
|
process.env.NODE_ENV === "development" ? "https://ypbwg.4dage.com" : "";
|
|
|
|
|
|
+// 为 window 添加属性ts类型
|
|
|
+declare global {
|
|
|
+ interface Window {
|
|
|
+ sceneBackIconStatus: (flag: boolean) => void;
|
|
|
+ incoBackSonFu: (flag: boolean) => void;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
// 处理 类型“AxiosResponse<any, any>”上不存在属性“code”
|
|
|
declare module "axios" {
|
|
|
interface AxiosResponse {
|
|
@@ -58,7 +66,7 @@ http.interceptors.response.use(
|
|
|
if (response.data.code === 0) {
|
|
|
// MessageFu.success(response.data.msg);
|
|
|
} else {
|
|
|
- isMobiileFu()&&response.data.msg
|
|
|
+ isMobiileFu() && response.data.msg
|
|
|
? Toast.show({
|
|
|
icon: "fail",
|
|
|
content: response.data.msg,
|