Commit 98bd8913e7a4c7c8e08f7d49a1a2b54a28274e44
1 parent
9ccce016
fix(通道快照): 修复前后端分离部署后通道快照不显示的问题
Showing
1 changed file
with
2 additions
and
3 deletions
web_src/src/components/channelList.vue
| @@ -123,7 +123,6 @@ | @@ -123,7 +123,6 @@ | ||
| 123 | <script> | 123 | <script> |
| 124 | import devicePlayer from './dialog/devicePlayer.vue' | 124 | import devicePlayer from './dialog/devicePlayer.vue' |
| 125 | import uiHeader from '../layout/UiHeader.vue' | 125 | import uiHeader from '../layout/UiHeader.vue' |
| 126 | -import moment from "moment"; | ||
| 127 | import DeviceService from "./service/DeviceService"; | 126 | import DeviceService from "./service/DeviceService"; |
| 128 | import DeviceTree from "./common/DeviceTree"; | 127 | import DeviceTree from "./common/DeviceTree"; |
| 129 | 128 | ||
| @@ -290,8 +289,8 @@ export default { | @@ -290,8 +289,8 @@ export default { | ||
| 290 | }); | 289 | }); |
| 291 | }, | 290 | }, |
| 292 | getSnap: function (row) { | 291 | getSnap: function (row) { |
| 293 | - let url = (process.env.NODE_ENV === 'development'? "debug": "") + '/api/device/query/snap/' + row.deviceId + '/' + row.channelId | ||
| 294 | - return url | 292 | + let baseUrl = window.baseUrl ? window.baseUrl : ""; |
| 293 | + return ((process.env.NODE_ENV === 'development') ? process.env.BASE_API : baseUrl) + '/api/device/query/snap/' + row.deviceId + '/' + row.channelId; | ||
| 295 | }, | 294 | }, |
| 296 | getBigSnap: function (row) { | 295 | getBigSnap: function (row) { |
| 297 | return [this.getSnap(row)] | 296 | return [this.getSnap(row)] |