Merge pull request #844 from xiaoQQya/wvp-28181-2.0

修复前后端分离部署后通道快照不显示的问题
pull/847/head
648540858 2023-05-08 17:56:56 +08:00 committed by GitHub
commit 7e48d84740
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

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)]