Files
wvp-platform/web_src/src/components/operationsForRealLog.vue

39 lines
914 B
Vue
Raw Normal View History

2024-11-01 17:45:58 +08:00
<template>
<div id="log" style="width: 100%;height: 100%;">
<operationsFoShowLog ref="recordVideoPlayer" :remoteUrl="removeUrl" ></operationsFoShowLog>
2024-11-01 17:45:58 +08:00
</div>
</template>
<script>
import operationsFoShowLog from "./dialog/operationsFoShowLog.vue";
2024-11-02 12:11:52 +08:00
2024-11-01 17:45:58 +08:00
export default {
name: 'log',
components: {operationsFoShowLog},
2024-11-01 17:45:58 +08:00
data() {
return {
loading: false,
removeUrl: this.getURl(),
winHeight: window.innerHeight - 220,
2024-11-01 17:45:58 +08:00
};
},
created() {
console.log("removeUrl11 == " + this.removeUrl)
2024-11-01 17:45:58 +08:00
},
methods: {
getURl: function () {
2024-11-01 17:45:58 +08:00
if (process.env.NODE_ENV !== 'development') {
2024-11-02 12:11:52 +08:00
if (location.protocol === "https:") {
return `wss://${window.location.host}/channel/log`;
2024-11-02 12:11:52 +08:00
}else {
return `ws://${window.location.host}/channel/log`
2024-11-02 12:11:52 +08:00
}
2024-11-01 17:45:58 +08:00
}else {
return "ws://localhost:18080/channel/log";
}
},
2024-11-01 17:45:58 +08:00
}
};
</script>