Sign in
简柏林
/
thingskit-view
·
Commits
GitLab
Go to dashboard
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
26c61473bc8adcd9e39ee890dbb5e6bc541450f2
Authored by
ww
2024-03-01 16:43:38 +0800
1 parent
b1088ed5
fix: 修复视频组件分享时401
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
src/api/external/common/index.ts
src/api/external/flvPlay/index.ts
src/api/external/common/index.ts
View file @
26c6147
...
...
@@ -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
//获取行政区域
...
...
src/api/external/flvPlay/index.ts
View file @
26c6147
...
...
@@ -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
};
...
...