fix: 配置文件config.js变更
This commit is contained in:
@@ -13,14 +13,16 @@
|
|||||||
// baseUrl = protocol://ip:port
|
// baseUrl = protocol://ip:port
|
||||||
// baseUrl = 'http://192.168.8.100:33030';
|
// baseUrl = 'http://192.168.8.100:33030';
|
||||||
const protocol = window.location.protocol
|
const protocol = window.location.protocol
|
||||||
|
let wsprotocol = "ws:"
|
||||||
const hostname = window.location.hostname
|
const hostname = window.location.hostname
|
||||||
let host = `${hostname}:33030`;
|
let host = `${hostname}:33030`;
|
||||||
if (protocol === 'https:') {
|
if (protocol === 'https:') {
|
||||||
host = `${hostname}:33443`;
|
host = `${hostname}:33443`;
|
||||||
|
wsprotocol = "wss:"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Service Address
|
// Service Address
|
||||||
sessionStorage.setItem('baseUrl', `${protocol}//${host}`);
|
sessionStorage.setItem('baseUrl', `${protocol}//${host}`);
|
||||||
// websocket Address
|
// websocket Address
|
||||||
sessionStorage.setItem('wsUrl', `ws://${host}`);
|
sessionStorage.setItem('wsUrl', `${wsprotocol}//${host}`);
|
||||||
})();
|
})();
|
||||||
@@ -996,7 +996,6 @@ onBeforeUnmount(() => {
|
|||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<TableColumnsDnd
|
<TableColumnsDnd
|
||||||
v-if="tableColumns.length > 0"
|
v-if="tableColumns.length > 0"
|
||||||
:cache-id="`kpiTarget_${state.neType[0]}`"
|
|
||||||
:columns="tableColumns"
|
:columns="tableColumns"
|
||||||
v-model:columns-dnd="tableColumnsDnd"
|
v-model:columns-dnd="tableColumnsDnd"
|
||||||
></TableColumnsDnd>
|
></TableColumnsDnd>
|
||||||
|
|||||||
Reference in New Issue
Block a user