Skip to content

Commit dc0ec1a

Browse files
Merge pull request #475 from demonray/branch-1.0.0
linkis href with correct location protocol
2 parents 8d2afbb + 8f10196 commit dc0ec1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web/src/common/service/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ let cutReq = (config) => {
4949
};
5050

5151
const instance = axios.create({
52-
baseURL: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
52+
baseURL: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
5353
timeout: 600000,
5454
withCredentials: true,
5555
headers: { 'Content-Type': 'application/json;charset=UTF-8' },

0 commit comments

Comments
 (0)