fix system log

This commit is contained in:
bwcx_jzy 2021-03-02 15:21:17 +08:00
parent ff09d37fd4
commit 18316597e2

View File

@ -53,7 +53,9 @@ export default {
]),
socketUrl() {
const protocol = location.protocol === 'https' ? 'wss://' : 'ws://';
return `${protocol}${location.host}/tomcat_log?userId=${this.getToken}&tomcatId=${this.tomcatId}&nodeId=${this.nodeId}&type=tomcat`;
const domain = document.getElementById('domainPath').value;
const url = (domain + '/tomcat_log').replaceAll('//', '/')
return `${protocol}${location.host}${url}?userId=${this.getToken}&tomcatId=${this.tomcatId}&nodeId=${this.nodeId}&type=tomcat`;
}
},
created() {