File tree Expand file tree Collapse file tree 4 files changed +8
-6
lines changed
Expand file tree Collapse file tree 4 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1616
1717## 开始使用
1818
19- - Playground: [ https://opendatalab.github.io/labelU-Kit/ ] ( https://opendatalab.github.io/labelU-Kit/ )
20- - 体验 LabelU 在线版: [ https://labelu.shlab.tech/ ] ( https://labelu.shlab.tech/ )
19+ - [ Playground ] ( https://opendatalab.github.io/labelU/playground/image )
20+ - [ LabelU 在线版] ( https://labelu.shlab.tech/ )
2121
2222## Packages
2323
Original file line number Diff line number Diff line change 1616
1717## Getting Started
1818
19- - Playground: [ https://opendatalab.github.io/labelU-Kit/ ] ( https://opendatalab.github.io/labelU-Kit/ )
20- - Try LabelU: [ https://labelu.shlab.tech/ ] ( https://labelu.shlab.tech/ )
19+ - [ Playground ] ( https://opendatalab.github.io/labelU/playground/image )
20+ - [ LabelU online ] ( https://labelu.shlab.tech/ )
2121- Documentation: [ https://opendatalab.github.io/labelU-Kit ] ( https://opendatalab.github.io/labelU-Kit )
2222
2323## Packages
Original file line number Diff line number Diff line change 112112 "vite-plugin-svgr" : " ^2.4.0" ,
113113 "vite-plugin-ts-mono-alias" : " ^1.1.8"
114114 }
115- }
115+ }
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ export default function useSampleWs() {
4343
4444 useEffect ( ( ) => {
4545 wsRef . current = new WebSocketClient (
46- `ws://${ host } /ws/task/${ routeParams . taskId } /${ routeParams . sampleId } ?token=${ token } ` ,
46+ `${ window . location . protocol === 'https:' ? 'wss' : 'ws' } ://${ host } /ws/task/${ routeParams . taskId } /${
47+ routeParams . sampleId
48+ } ?token=${ token } `,
4749 ) ;
4850
4951 const ws = wsRef . current ;
You can’t perform that action at this time.
0 commit comments