update
This commit is contained in:
1
Web/js/CommonConfig.js
Normal file
1
Web/js/CommonConfig.js
Normal file
@@ -0,0 +1 @@
|
||||
var headerModel=0;
|
||||
19
Web/js/httpUtils.js
Normal file
19
Web/js/httpUtils.js
Normal file
@@ -0,0 +1,19 @@
|
||||
/**
|
||||
*
|
||||
* @param {*} callback 回调
|
||||
*/
|
||||
function getLiveVideoList(callback){
|
||||
fetch("/live/video/list")
|
||||
.then(response => {
|
||||
if (!response.ok) {
|
||||
throw new Error(`HTTP error! Status: ${response.status}`);
|
||||
}
|
||||
return response.json();
|
||||
})
|
||||
.then(data => {
|
||||
callback.success(data);
|
||||
})
|
||||
.catch(error => {
|
||||
callback.error(error);
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user