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:
@@ -155,7 +155,7 @@ function onLoginButtonClick() {
|
||||
await QueryPostAPI<{
|
||||
account: AccountInfo
|
||||
token: string
|
||||
}>(ACCOUNT_API_URL() + 'login', {
|
||||
}>(ACCOUNT_API_URL + 'login', {
|
||||
nameOrEmail: loginModel.value.account,
|
||||
password: loginModel.value.password,
|
||||
})
|
||||
@@ -180,7 +180,7 @@ function onLoginButtonClick() {
|
||||
}
|
||||
async function onForgetPassword() {
|
||||
canSendForgetPassword.value = false
|
||||
await QueryGetAPI(ACCOUNT_API_URL() + 'reset-password', { email: inputForgetPasswordValue.value }, [['Turnstile', token.value]])
|
||||
await QueryGetAPI(ACCOUNT_API_URL + 'reset-password', { email: inputForgetPasswordValue.value }, [['Turnstile', token.value]])
|
||||
.then(async (data) => {
|
||||
if (data.code == 200) {
|
||||
message.success('已发送密码重置链接到你的邮箱, 请检查')
|
||||
|
||||
@@ -393,7 +393,7 @@ function renderCell(value: string | number) {
|
||||
}
|
||||
|
||||
async function updateSong() {
|
||||
await QueryPostAPI<SongsInfo>(SONG_API_URL() + 'update', {
|
||||
await QueryPostAPI<SongsInfo>(SONG_API_URL + 'update', {
|
||||
key: updateSongModel.value.key,
|
||||
song: updateSongModel.value,
|
||||
}).then((data) => {
|
||||
@@ -407,7 +407,7 @@ async function updateSong() {
|
||||
})
|
||||
}
|
||||
async function delSong(song: SongsInfo) {
|
||||
await QueryGetAPI<SongsInfo>(SONG_API_URL() + 'del', {
|
||||
await QueryGetAPI<SongsInfo>(SONG_API_URL + 'del', {
|
||||
key: song.key,
|
||||
}).then((data) => {
|
||||
if (data.code == 200) {
|
||||
|
||||
@@ -43,7 +43,7 @@ function OnPlayMusic(song: SongsInfo) {
|
||||
}
|
||||
async function GetLyric(song: SongsInfo) {
|
||||
emits('update:isLrcLoading', song.key)
|
||||
QueryGetAPI<{ lyric: string; tlyric: string }>(SONG_API_URL() + 'get-netease-lyric', { id: song.id })
|
||||
QueryGetAPI<{ lyric: string; tlyric: string }>(SONG_API_URL + 'get-netease-lyric', { id: song.id })
|
||||
.then((data) => {
|
||||
console.log(mergeLyrics(data.data.lyric, data.data.tlyric))
|
||||
if (data.code == 200) {
|
||||
|
||||
Reference in New Issue
Block a user