diff --git a/src/components/FeedbackItem.vue b/src/components/FeedbackItem.vue
index c4d3072..88cbc34 100644
--- a/src/components/FeedbackItem.vue
+++ b/src/components/FeedbackItem.vue
@@ -40,15 +40,47 @@ defineProps<{
- 建议
- Bug
- 功能
- 其他
+
+ 建议
+
+
+ Bug
+
+
+ 功能
+
+
+ 其他
+
{{ item.message }}
-
+
{{ item.replyMessage }}
diff --git a/src/main.ts b/src/main.ts
index 821832d..509ad72 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,7 +1,7 @@
import { QueryGetAPI } from '@/api/query'
import { BASE_API, apiFail } from '@/data/constants'
import EasySpeech from 'easy-speech'
-import { NText, createDiscreteApi } from 'naive-ui'
+import { NButton, NFlex, NText, createDiscreteApi } from 'naive-ui'
import { createPinia } from 'pinia'
import { createApp, h } from 'vue'
import App from './App.vue'
@@ -16,6 +16,8 @@ const app = createApp(App)
app.use(router).use(pinia).mount('#app')
let currentVersion: string
+let isHaveNewVersion = false
+
const { notification } = createDiscreteApi(['notification'])
QueryGetAPI(BASE_API() + 'vtsuru/version')
.then((version) => {
@@ -35,6 +37,34 @@ QueryGetAPI(BASE_API() + 'vtsuru/version')
duration: 5000,
meta: () => h(NText, { depth: 3 }, () => currentVersion),
})
+ } else {
+ setInterval(() => {
+ if (isHaveNewVersion) {
+ return
+ }
+ QueryGetAPI(BASE_API() + 'vtsuru/version').then((keepCheckData) => {
+ if (keepCheckData.code == 200 && keepCheckData.data != currentVersion) {
+ isHaveNewVersion = true
+ currentVersion = version.data
+ localStorage.setItem('Version', currentVersion)
+
+ const n = notification.info({
+ title: '发现新的版本更新',
+ content: '是否现在刷新?',
+ meta: () => h(NText, { depth: 3 }, () => currentVersion),
+ action: () =>
+ h(NFlex, null, () => [
+ h(
+ NButton,
+ { text: true, type: 'primary', onClick: () => location.reload(), size: 'small' },
+ { default: () => '刷新' },
+ ),
+ h(NButton, { text: true, onClick: () => n.destroy(), size: 'small' }, { default: () => '稍后' }),
+ ]),
+ })
+ }
+ })
+ }, 60 * 1000)
}
}
})
diff --git a/src/views/IndexView.vue b/src/views/IndexView.vue
index c31e56d..44247b6 100644
--- a/src/views/IndexView.vue
+++ b/src/views/IndexView.vue
@@ -11,7 +11,7 @@ import {
} from '@vicons/fluent'
import { AnalyticsSharp, Calendar, Chatbox, ListCircle, MusicalNote } from '@vicons/ionicons5'
import { useWindowSize } from '@vueuse/core'
-import { NButton, NDivider, NGradientText, NGrid, NGridItem, NIcon, NSpace, NText } from 'naive-ui'
+import { NButton, NDivider, NEllipsis, NGradientText, NGrid, NGridItem, NIcon, NSpace, NText } from 'naive-ui'
const { width } = useWindowSize()
@@ -73,7 +73,7 @@ const functions = [
},
{
name: '视频征集',
- desc: '创建用来收集视频链接的页面, 可以从动态爬取, 也可以提前对视频进行筛选',
+ desc: '创建用来收集视频链接的页面, 可以从动态爬取(画饼), 也可以提前对视频进行筛选',
icon: VideoAdd20Filled,
},
{
@@ -140,9 +140,11 @@ const iconColor = 'white'
-
+
-
+
+
+
{{ item.desc }}