mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
update url, improve queue and songrequest
This commit is contained in:
@@ -94,7 +94,7 @@ const isLoading2 = ref(false)
|
||||
async function get() {
|
||||
try {
|
||||
isLoading.value = true
|
||||
const data = await QueryGetAPI<VideoCollectTable[]>(VIDEO_COLLECT_API_URL() + 'get-all')
|
||||
const data = await QueryGetAPI<VideoCollectTable[]>(VIDEO_COLLECT_API_URL + 'get-all')
|
||||
if (data.code == 200) {
|
||||
//videoTables.value = data.data
|
||||
return data.data
|
||||
@@ -112,7 +112,7 @@ async function get() {
|
||||
function createTable() {
|
||||
formRef.value?.validate().then(async () => {
|
||||
isLoading2.value = true
|
||||
QueryPostAPI<VideoCollectTable>(VIDEO_COLLECT_API_URL() + 'create', createVideoModel.value)
|
||||
QueryPostAPI<VideoCollectTable>(VIDEO_COLLECT_API_URL + 'create', createVideoModel.value)
|
||||
.then((data) => {
|
||||
if (data.code == 200) {
|
||||
videoTables.value.push(data.data)
|
||||
|
||||
Reference in New Issue
Block a user