update url

This commit is contained in:
2023-12-14 12:56:28 +08:00
parent 4ab1f6da4f
commit 82a0e72122
39 changed files with 299 additions and 350 deletions

View File

@@ -21,7 +21,7 @@ const defaultDanmakusCount = ref(0)
async function getAll() {
try {
const data = await QueryGetAPI<ResponseLiveInfoModel[]>(LIVE_API_URL + 'get-all')
const data = await QueryGetAPI<ResponseLiveInfoModel[]>(LIVE_API_URL() + 'get-all')
if (data.code == 200) {
return data.data
} else {
@@ -29,7 +29,6 @@ async function getAll() {
return []
}
} catch (err) {
console.error(err)
message.error('无法获取数据')
}
return []