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:
@@ -111,7 +111,7 @@ function OnFileListChange(files: UploadFileInfo[]) {
|
||||
}
|
||||
function getPublicQuestions() {
|
||||
isGetting.value = true
|
||||
QueryGetAPI<QAInfo[]>(QUESTION_API_URL() + 'get-public', {
|
||||
QueryGetAPI<QAInfo[]>(QUESTION_API_URL + 'get-public', {
|
||||
id: userInfo?.id,
|
||||
})
|
||||
.then((data) => {
|
||||
|
||||
@@ -30,7 +30,7 @@ const errMessage = ref('')
|
||||
|
||||
async function get() {
|
||||
isLoading.value = true
|
||||
await QueryGetAPI<ScheduleWeekInfo[]>(SCHEDULE_API_URL() + 'get', {
|
||||
await QueryGetAPI<ScheduleWeekInfo[]>(SCHEDULE_API_URL + 'get', {
|
||||
id: props.userInfo?.id,
|
||||
})
|
||||
.then((data) => {
|
||||
|
||||
@@ -45,7 +45,7 @@ const settings = ref<Setting_SongRequest>({} as Setting_SongRequest)
|
||||
|
||||
async function getSongRequestInfo() {
|
||||
try {
|
||||
const data = await QueryGetAPI<{ songs: SongRequestInfo[]; setting: Setting_SongRequest }>(SONG_REQUEST_API_URL() + 'get-active-and-settings', {
|
||||
const data = await QueryGetAPI<{ songs: SongRequestInfo[]; setting: Setting_SongRequest }>(SONG_REQUEST_API_URL + 'get-active-and-settings', {
|
||||
id: props.userInfo?.id,
|
||||
})
|
||||
if (data.code == 200) {
|
||||
@@ -56,7 +56,7 @@ async function getSongRequestInfo() {
|
||||
}
|
||||
async function getSongs() {
|
||||
isLoading.value = true
|
||||
await QueryGetAPI<SongsInfo[]>(SONG_API_URL() + 'get', {
|
||||
await QueryGetAPI<SongsInfo[]>(SONG_API_URL + 'get', {
|
||||
id: props.userInfo?.id,
|
||||
})
|
||||
.then((data) => {
|
||||
@@ -85,7 +85,7 @@ async function requestSong(song: SongsInfo) {
|
||||
} else {
|
||||
if (props.userInfo) {
|
||||
try {
|
||||
const data = await QueryPostAPIWithParams(SONG_REQUEST_API_URL() + 'add-from-web', {
|
||||
const data = await QueryPostAPIWithParams(SONG_REQUEST_API_URL + 'add-from-web', {
|
||||
target: props.userInfo?.id,
|
||||
song: song.key,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user