add obs checker

This commit is contained in:
2024-02-21 12:35:24 +08:00
parent cc778d22b4
commit 6317699f6c
10 changed files with 77 additions and 14 deletions

View File

@@ -20,7 +20,6 @@ interface LoginModel {
const message = useMessage()
const isRegister = ref(false)
const isLoading = ref(false)
const registerModel = ref<RegisterModel>({} as RegisterModel)
@@ -148,7 +147,7 @@ function onLoginButtonClick() {
message.error(data.message)
}
})
.catch((err) => {
.catch(() => {
message.error('登陆失败')
})
.finally(() => {
@@ -166,7 +165,7 @@ async function onForgetPassword() {
message.error(data.message)
}
})
.catch((err) => {
.catch(() => {
message.error('发生错误')
})
.finally(() => {

View File

@@ -3,14 +3,13 @@ import { SongFrom, SongsInfo } from '@/api/api-models'
import { QueryGetAPI } from '@/api/query'
import { SONG_API_URL } from '@/data/constants'
import { NEmpty } from 'naive-ui'
import { computed, ref, toRef, watch } from 'vue'
import { computed, ref, watch } from 'vue'
import APlayer from 'vue3-aplayer'
const props = defineProps<{
song: SongsInfo | undefined
isLrcLoading?: string
}>()
const currentSong = toRef(props, 'song')
const emits = defineEmits(['update:isLrcLoading'])
const aplayerMusic = ref({