refactor(record): 重命名 VideoPlayer 组件并优化代码

- 将 VidepPlayer.vue 重命名为 VideoPlayer.vue,纠正拼写错误
- 添加生产环境 API 接口的注释
IOT
zch 3 months ago
parent 1436004ffa
commit a09d398037

@ -25,11 +25,20 @@ export default {
async loadVideoPaths() {
const filePath = this.$route.query.filePath;
try {
// TODO:
//TODO:
const thermalResponse = `/dev-api/record/recordInspectionCabinet/getThermalVideo/${filePath}`;
this.thermalVideoUrl = thermalResponse;
const visibleResponse = `/dev-api/record/recordInspectionCabinet/getVisibleVideo/${filePath}`;
this.visibleVideoUrl = visibleResponse;
/* const thermalResponse = `/prod-api/record/recordInspectionCabinet/getThermalVideo/${filePath}`;
this.thermalVideoUrl = thermalResponse;
const visibleResponse = `/prod-api/record/recordInspectionCabinet/getVisibleVideo/${filePath}`;
this.visibleVideoUrl = visibleResponse;*/
/* const thermalResponse = getThermalVideo(filePath);
this.thermalVideoUrl = thermalResponse;
const visibleResponse= getVisibleVideo(filePath);
this.visibleVideoUrl = visibleResponse;*/
this.playVideo();
} catch (error) {
Loading…
Cancel
Save