Commit a2fc9bb9 authored by xinzhedeai's avatar xinzhedeai

amap key更换

parent a321d892
......@@ -4,14 +4,14 @@ ENV = 'production'
# 接口地址,注意协议,如果你没有配置 ssl,需要将 https 改为 http
# 如果接口是 http 形式, wss 需要改为 ws
# VUE_APP_BASE_API = 'http://218.56.105.134:8057'
# VUE_APP_BASE_API = 'http://192.168.13.200:8057'
VUE_APP_BASE_API = 'http://218.56.105.134:8057'
# ------------------------
# VUE_APP_LOCAL_API = 'http://218.56.105.134:8013'
# VUE_APP_LOCAL_API = 'http://192.168.13.200:8013'
VUE_APP_LOCAL_API = 'http://218.56.105.134:8013'
......
......@@ -734,12 +734,16 @@
<!-- cookie -->
<script src="js/js.cookie.js"></script>
<script>
<<<<<<< Updated upstream
const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.3.37' : '218.56.105.134') + ':8013';
=======
const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.37' : '192.168.13.200') + ':8013';
>>>>>>> Stashed changes
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.3.180' ? '192.168.2.200' : '218.56.105.134') + ':8013';
const selfHost = location.hostname === '192.168.3.38' ? 'http://192.168.3.38:8057' : location.protocol + '//' + window.location.host;
const selfHost = location.hostname === '192.168.2.11' ? 'http://192.168.2.11:8057' : location.protocol + '//' + window.location.host;
const token = Cookies.get('ELADMIN-TOEKN');
axios = axios.create({
......
......@@ -875,7 +875,6 @@
</div>
</div>
</body>
<script src="/static/js/qf_web_ui.min.js"></script>
<!-- 引入echarts -->
<script src="js/echarts.min.js"></script>
......@@ -892,12 +891,19 @@
<!-- cookie -->
<script src="js/js.cookie.js"></script>
<script>
<<<<<<< Updated upstream
const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.3.37' : '218.56.105.134') + ':8013';
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.2.200' : '218.56.105.134') + ':8013';
=======
const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.37' : '192.168.13.200') + ':8013';
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.200' : '192.168.13.200') + ':8013';
>>>>>>> Stashed changes
const selfHost = location.hostname === '192.168.3.38' ? 'http://192.168.3.38:8057' : location.protocol + '//' + window.location.host;
const selfHost = location.hostname === '192.168.2.11' ? 'http://192.168.2.11:8057' : location.protocol + '//' + window.location.host;
const token = Cookies.get('ELADMIN-TOEKN');
axios = axios.create({
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -755,13 +755,21 @@
<script src="js/js.cookie.js"></script>
<script>
// 小黄
<<<<<<< Updated upstream
//const host = location.protocol + '//' + (location.hostname === '192.168.3.180' ? '192.168.2.200' : '218.56.105.134') + ':8013';
const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.3.37' : '218.56.105.134') + ':8013';
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.2.200' : '218.56.105.134') + ':8013';
=======
//const host = location.protocol + '//' + (location.hostname === '192.168.3.180' ? '192.168.2.200' : '192.168.13.200') + ':8013';
const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.37' : '192.168.13.200') + ':8013';
const selfHost = location.hostname === '192.168.3.38' ? 'http://192.168.3.38:8057' : location.protocol + '//' + window.location.host;
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.200' : '192.168.13.200') + ':8013';
>>>>>>> Stashed changes
const selfHost = location.hostname === '192.168.2.11' ? 'http://192.168.2.11:8057' : location.protocol + '//' + window.location.host;
const token = Cookies.get('ELADMIN-TOEKN');
axios = axios.create({
......
......@@ -345,9 +345,13 @@
}
);
<<<<<<< Updated upstream
const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.3.37' : '218.56.105.134') + ':8013';
=======
const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.37' : '192.168.13.200') + ':8013';
>>>>>>> Stashed changes
const selfHost = location.hostname === '192.168.3.38' ? 'http://192.168.3.38:8057' : location.protocol + '//' + window.location.host;
const selfHost = location.hostname === '192.168.2.11' ? 'http://192.168.2.11:8057' : location.protocol + '//' + window.location.host;
// 请求 token 用
......
......@@ -421,9 +421,13 @@
//const host = location.protocol + '//' + window.location.host;
<<<<<<< Updated upstream
const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.3.37' : '218.56.105.134') + ':8013';
=======
const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.37' : '192.168.13.200') + ':8013';
>>>>>>> Stashed changes
const selfHost = 'http://192.168.3.38:8057';
const selfHost = 'http://192.168.2.11:8057';
......
......@@ -863,12 +863,19 @@
<script src="js/highcharts.js"></script>
<script>
<<<<<<< Updated upstream
const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.3.37' : '218.56.105.134') + ':8013';
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.3.38' ? '192.168.2.200' : '218.56.105.134') + ':8013';
=======
const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.37' : '192.168.13.200') + ':8013';
const selfHost = location.hostname === '192.168.3.38' ? 'http://192.168.3.38:8057' : location.protocol + '//' + window.location.host;
// 小黄
//const host = location.protocol + '//' + (location.hostname === '192.168.2.11' ? '192.168.2.200' : '192.168.13.200') + ':8013';
>>>>>>> Stashed changes
const selfHost = location.hostname === '192.168.2.11' ? 'http://192.168.2.11:8057' : location.protocol + '//' + window.location.host;
const token = Cookies.get('ELADMIN-TOEKN');
axios = axios.create({
......
......@@ -28,7 +28,7 @@
<script type="text/javascript" src="./static/js/config.js"></script>
<script type="text/javascript">
window._AMapSecurityConfig = {
securityJsCode: '063051f26bc0d70690b78bccfcab2236'
securityJsCode: '43b719b484e2691a32a7c4fc2b3814a3'
}
</script>
<div id="app"></div>
......
......@@ -92,7 +92,7 @@ export default {
},
initMap() {
AMapLoader.load({
key: 'a0efee399e638b35211705625d786e83',
key: '031fffe3bf7ba63fd7ed383da7e61702',
version: '2.0',
plugins: []
}).then((AMap) => {
......
......@@ -92,7 +92,7 @@ export default {
},
initMap() {
AMapLoader.load({
key: 'a0efee399e638b35211705625d786e83',
key: '031fffe3bf7ba63fd7ed383da7e61702',
version: '2.0',
plugins: []
}).then((AMap) => {
......
......@@ -47,7 +47,7 @@ export default {
methods: {
initMap() {
AMapLoader.load({
key: 'a0efee399e638b35211705625d786e83',
key: '031fffe3bf7ba63fd7ed383da7e61702',
version: '2.0',
plugins: []
}).then((AMap) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment