Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 40f3314

Browse files
author
wangjinxiao
committed
fix
1 parent f6179fb commit 40f3314

File tree

10 files changed

+5
-58
lines changed

10 files changed

+5
-58
lines changed

websitefronted/config/prod.env.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
'use strict'
22
module.exports = {
33
NODE_ENV: '"production"',
4-
BASE_API: '"http://106.52.130.115:8000/"'
4+
BASE_API: '"http://106.52.130.115:80/"'
55
}
-98.6 KB
Binary file not shown.
-9.21 KB
Binary file not shown.
-5.3 KB
Binary file not shown.

websitefronted/src/assets/grafana_icon.svg

Lines changed: 0 additions & 57 deletions
This file was deleted.

websitefronted/src/assets/logo.png

-105 KB
Binary file not shown.
-5.72 KB
Binary file not shown.

websitefronted/src/assets/web2.png

-13.2 KB
Binary file not shown.

websitefronted/src/assets/web3.png

-12.2 KB
Binary file not shown.

websitefronted/src/main.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ axios.defaults.baseURL = process.env.BASE_API
2222
//请求超时时间
2323
axios.defaults.timeout = 10000 //超时10秒
2424

25+
let protocol = window.location.protocol; //协议
26+
let host = window.location.host;
27+
axios.defaults.baseURL = protocol + "//" + host +":80";
28+
2529
axios.interceptors.request.use(config => {
2630
if (localStorage.token) {
2731
config.headers.Authorization = 'JWT ' + localStorage.token

0 commit comments

Comments
 (0)