fix(通道快照): 修复前后端分离部署后通道快照不显示的问题

This commit is contained in:
xiaoQQya 2023-05-08 16:15:50 +08:00
parent 9ccce01692
commit 98bd8913e7

View File

@ -123,7 +123,6 @@
<script>
import devicePlayer from './dialog/devicePlayer.vue'
import uiHeader from '../layout/UiHeader.vue'
import moment from "moment";
import DeviceService from "./service/DeviceService";
import DeviceTree from "./common/DeviceTree";
@ -290,8 +289,8 @@ export default {
});
},
getSnap: function (row) {
let url = (process.env.NODE_ENV === 'development'? "debug": "") + '/api/device/query/snap/' + row.deviceId + '/' + row.channelId
return url
let baseUrl = window.baseUrl ? window.baseUrl : "";
return ((process.env.NODE_ENV === 'development') ? process.env.BASE_API : baseUrl) + '/api/device/query/snap/' + row.deviceId + '/' + row.channelId;
},
getBigSnap: function (row) {
return [this.getSnap(row)]