From 0fa88f9c2e3c8ce335e7cd6dfc6c8e5641950735 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Wed, 09 Feb 2022 15:53:24 +0800
Subject: [PATCH] +弹窗图片可点击,列表展示文字区域点击是定位,图片可点击,+活动打开后隐藏右侧控制栏,+操作方式更改
---
src/router/axios.js | 13 ++++++++++---
1 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/src/router/axios.js b/src/router/axios.js
index 4319e01..dcf919e 100644
--- a/src/router/axios.js
+++ b/src/router/axios.js
@@ -6,11 +6,18 @@
* isToken是否需要token
*/
import axios from "axios";
-
+let httpName = window.location.protocol + "//" + window.location.hostname;
+let url = httpName + "/apis";
+// setTimeout(() => {
+// console.log(window.location);
+// console.log(url);
+// }, 3000);
const service = axios.create({
// baseURL: 'http://192.168.0.107:83',
- // baseURL: 'http://192.168.0.107:80',
- baseURL: "http://171.34.197.243:790",
+ // baseURL: "http://192.168.0.107:80",
+ baseURL: "http://171.34.197.243:790", //正常接口
+ // baseURL: "https://6e78efa6.cpolar.io/apis", //https接口
+ // baseURL: url, //https接口
// baseURL: 'http://s16s652780.51mypc.cn/api',
timeout: 600000, // request timeout
});
--
Gitblit v1.9.3