mirror of
https://github.com/Megghy/vtsuru.live.git
synced 2025-12-07 02:46:55 +08:00
fix event get
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
# 使用 Prettier 格式化代码
|
||||
npx prettier --write 'src/**/*.{js,jsx,ts,tsx,json,css,md}'
|
||||
|
||||
# 可以加入一个Git命令来确保这些改动被包含在push中
|
||||
git add .
|
||||
@@ -63,7 +63,6 @@
|
||||
"@vue/eslint-config-typescript": "^12.0.0",
|
||||
"eslint-config-prettier": "^9.1.0",
|
||||
"eslint-plugin-vue": "^9.21.1",
|
||||
"husky": "^9.0.11",
|
||||
"naive-ui": "^2.37.3",
|
||||
"stylus": "^0.62.0",
|
||||
"typescript": "^5.3.3"
|
||||
|
||||
@@ -3,7 +3,7 @@ import { isDarkMode } from '@/Utils'
|
||||
import { useAccount } from '@/api/account'
|
||||
import { QueryGetAPI } from '@/api/query'
|
||||
import EventFetcherStatusCard from '@/components/EventFetcherStatusCard.vue'
|
||||
import { AVATAR_URL, BASE_API } from '@/data/constants'
|
||||
import { AVATAR_URL, BASE_API, EVENT_API_URL } from '@/data/constants'
|
||||
import { Grid28Filled, List16Filled } from '@vicons/fluent'
|
||||
import { format } from 'date-fns'
|
||||
import { saveAs } from 'file-saver'
|
||||
@@ -86,7 +86,7 @@ async function onDateChange() {
|
||||
}
|
||||
async function get() {
|
||||
try {
|
||||
const data = await QueryGetAPI<EventModel[]>(BASE_API() + 'event/get', {
|
||||
const data = await QueryGetAPI<EventModel[]>(EVENT_API_URL + 'get', {
|
||||
start: selectedDate.value[0],
|
||||
end: selectedDate.value[1],
|
||||
})
|
||||
|
||||
@@ -4,10 +4,25 @@ import { onMounted, onUnmounted, ref } from 'vue'
|
||||
|
||||
const webFetcher = useWebFetcher()
|
||||
|
||||
onMounted(() => {
|
||||
webFetcher.Start()
|
||||
let timer: any
|
||||
onMounted(async () => {
|
||||
await webFetcher.Start()
|
||||
setTimeout(() => {
|
||||
// @ts-expect-error obs的东西
|
||||
if (!webFetcher.isStarted && window.obsstudio) {
|
||||
timer = setInterval(() => {
|
||||
if (webFetcher.isStarted) {
|
||||
return
|
||||
}
|
||||
webFetcher.Stop()
|
||||
webFetcher.Start()
|
||||
}, 20000)
|
||||
}
|
||||
}, 10000)
|
||||
})
|
||||
onUnmounted(() => {
|
||||
clearInterval(timer)
|
||||
})
|
||||
onUnmounted(() => {})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
|
||||
10
yarn.lock
10
yarn.lock
@@ -3404,15 +3404,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"husky@npm:^9.0.11":
|
||||
version: 9.0.11
|
||||
resolution: "husky@npm:9.0.11"
|
||||
bin:
|
||||
husky: bin.mjs
|
||||
checksum: 2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"iconv-lite@npm:^0.6.2":
|
||||
version: 0.6.3
|
||||
resolution: "iconv-lite@npm:0.6.3"
|
||||
@@ -5675,7 +5666,6 @@ __metadata:
|
||||
file-saver: "npm:^2.0.5"
|
||||
grapheme-splitter: "npm:^1.0.4"
|
||||
html2canvas: "npm:^1.4.1"
|
||||
husky: "npm:^9.0.11"
|
||||
linqts: "npm:^1.15.0"
|
||||
mitt: "npm:^3.0.1"
|
||||
music-metadata-browser: "npm:^2.5.10"
|
||||
|
||||
Reference in New Issue
Block a user