mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
@@ -245,7 +245,6 @@ export default class DanmakuClient {
|
||||
chatClient.start()
|
||||
console.log('[OPEN-LIVE] 已连接房间: ' + auth.anchor_info.room_id)
|
||||
this.roomAuthInfo.value = auth
|
||||
this.client = chatClient
|
||||
return true
|
||||
} else {
|
||||
console.log('[OPEN-LIVE] 无法开启场次')
|
||||
|
||||
@@ -23,8 +23,6 @@ export const HISTORY_API_URL = `${BASE_API}history/`
|
||||
export const SCHEDULE_API_URL = `${BASE_API}schedule/`
|
||||
export const VIDEO_COLLECT_API_URL = `${BASE_API}video-collect/`
|
||||
export const OPEN_LIVE_API_URL = `${BASE_API}open-live/`
|
||||
export const SONG_REQUEST_API_URL = `${BASE_API}song-request/`
|
||||
export const EVENT_API_URL = `${BASE_API}event/`
|
||||
|
||||
export const ScheduleTemplateMap = {
|
||||
'': { name: '默认', compoent: defineAsyncComponent(() => import('@/views/view/scheduleTemplate/DefaultScheduleTemplate.vue')) },
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { QueryGetAPI } from '@/api/query'
|
||||
import { useRequest } from 'vue-request'
|
||||
import { NOTIFACTION_API_URL, SONG_REQUEST_API_URL, isBackendUsable } from './constants'
|
||||
import { NOTIFACTION_API_URL, isBackendUsable } from './constants'
|
||||
import { NotifactionInfo } from '@/api/api-models'
|
||||
import { useAccount } from '@/api/account'
|
||||
import { ref } from 'vue'
|
||||
@@ -10,7 +10,7 @@ const n = ref<NotifactionInfo>()
|
||||
let isLoading = false
|
||||
function get() {
|
||||
if (isLoading) return
|
||||
QueryGetAPI<NotifactionInfo>(SONG_REQUEST_API_URL + 'get-active')
|
||||
QueryGetAPI<NotifactionInfo>(NOTIFACTION_API_URL + 'get')
|
||||
.then((data) => {
|
||||
if (data.code == 200) {
|
||||
n.value = data.data
|
||||
|
||||
Reference in New Issue
Block a user