Commit 26c61473bc8adcd9e39ee890dbb5e6bc541450f2

Authored by ww
1 parent b1088ed5

fix: 修复视频组件分享时401

... ... @@ -112,6 +112,8 @@ export const getDeviceList = (params: any, data?: object) =>
112 112 export const getVideoUrl = (id: string) =>
113 113 defHttp.get({
114 114 url: `${Api.VIDEOURL}${id}`
  115 + }, {
  116 + withShareToken: true
115 117 })
116 118
117 119 //获取行政区域
... ...
... ... @@ -31,6 +31,8 @@ export const getVideoControlStart = ({
31 31 url: `${Api.GET_VIDEO_CONTROL_START}/${deviceId}/${channelId}`,
32 32 timeout: 30 * 1000,
33 33 },
34   - {}
  34 + {
  35 + withShareToken: true
  36 + }
35 37 );
36 38 };
... ...