Skip to content

Commit 3bf8b82

Browse files
authored
Merge pull request #964 from jackxu2011/fix-http-protocal-fixed
fix: fit the https protocal
2 parents 045e286 + 15e9d70 commit 3bf8b82

File tree

25 files changed

+37
-37
lines changed

25 files changed

+37
-37
lines changed

web/packages/apiServices/module/apiServices/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
dispatchs: {
55
},
66
data: {
7-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
7+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
88
},
99
component: () => import('./index.vue'),
10-
};
10+
};

web/packages/apiServices/module/apiServicesExecute/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export default {
55
IndexedDB: ['updateResult'],
66
},
77
data: {
8-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
8+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
99
},
1010
component: () => import('./index.vue'),
11-
};
11+
};

web/packages/apiServices/module/servicesMangement/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
dispatchs: {
55
},
66
data: {
7-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
7+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
88
},
99
component: () => import('./index.vue'),
10-
};
10+
};

web/packages/dataGovernance/module/dataGovernance/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
dispatchs: {
55
},
66
data: {
7-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
7+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
88
},
99
component: () => import('./index.vue'),
1010
};

web/packages/dataService/module/dataManagement/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
dispatchs: {
55
},
66
data: {
7-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
7+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
88
},
99
component: () => import('./index.vue'),
10-
};
10+
};

web/packages/dataService/module/dataService/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export default {
44
dispatchs: {
55
},
66
data: {
7-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
7+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
88
},
99
component: () => import('./index.vue'),
10-
};
10+
};

web/packages/scriptis/module/hdfsSidebar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default {
2626
IndexedDB: ['getTabs', 'getTree', 'appendTree'],
2727
},
2828
data: {
29-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
29+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
3030
},
3131
methods: {
3232
showTree(cb) {

web/packages/scriptis/module/hiveSidebar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
events: ['showHive', 'getAllDbsAndTables', 'getAllowMap', 'HiveSidebar:getDatabase', 'HiveSidebar:getTables', 'HiveSidebar:getTablePartitions', 'HiveSidebar:deletedAndRefresh'],
2323
dispatchs: ['Workbench:add', 'Workbench:run', 'Workbench:pasteInEditor', 'HiveSidebar:getTables', 'WorkSidebar:showTree', 'HdfsSidebar:showTree', 'IndexedDB:getTree', 'IndexedDB:appendTree'],
2424
data: {
25-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
25+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
2626
ALLOW_MAP: ['_ind', '_share', '_work', '_qml'],
2727
},
2828
methods: {

web/packages/scriptis/module/workSidebar/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
IndexedDB: ['getTabs', 'appendTree', 'getTree'],
3333
},
3434
data: {
35-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
35+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
3636
},
3737
/**
3838
* methods在js被加载时就会加入监听者队列

web/packages/scriptis/module/workbench/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export default {
4040
IDE: ['saveNode'],
4141
},
4242
data: {
43-
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `http://${window.location.host}/api/rest_j/v1/`,
43+
API_PATH: process.env.VUE_APP_MN_CONFIG_PREFIX || `${location.protocol}//${window.location.host}/api/rest_j/v1/`,
4444
BI_API_PATH: 'dws/vg#',
4545
},
4646
component: () =>

0 commit comments

Comments
 (0)