diff --git a/src/api/api-models.ts b/src/api/api-models.ts
index 1643cab..92c6910 100644
--- a/src/api/api-models.ts
+++ b/src/api/api-models.ts
@@ -123,6 +123,7 @@ export interface UserSetting {
scheduleTemplate: string | null
}
export interface Setting_Index {
+ allowDisplayInIndex: boolean
videos: string[]
notification: string
links: {
diff --git a/src/views/IndexView.vue b/src/views/IndexView.vue
index 4372552..9ea2e39 100644
--- a/src/views/IndexView.vue
+++ b/src/views/IndexView.vue
@@ -1,7 +1,10 @@
@@ -102,15 +119,11 @@ const iconColor = 'white'
-
+
VTSURU.LIVE
一个给主播提供便利功能的网站 😊
@@ -131,13 +144,8 @@ const iconColor = 'white'
展示
-
+
幻星平台
关于
@@ -145,7 +153,13 @@ const iconColor = 'white'
-
+
+
+ 本站用户
+
+
+
+
@@ -157,17 +171,45 @@ const iconColor = 'white'
{{ item.desc }}
+
+ 正在使用本站的主播们
+
+
+
+
+ 随机展示不分先后, 仅粉丝数大于500的主播
+
+
+
+
+
+
+
![]()
+
+
+ {{ streamer.uname || streamer.name }}
+
+
+
+
+ 还有更多...
+
+
+ 如果你不想要被展示在主页, 请前往
+
+ 这里
+
+ 进行设置
+
+
+
BY
-
+
Megghy
diff --git a/src/views/manage/SettingsManageView.vue b/src/views/manage/SettingsManageView.vue
index cfae083..89e131d 100644
--- a/src/views/manage/SettingsManageView.vue
+++ b/src/views/manage/SettingsManageView.vue
@@ -4,6 +4,7 @@ import {
DelBlackList,
SaveAccountSettings,
SaveEnableFunctions,
+ SaveSetting,
downloadConfigDirect,
useAccount,
} from '@/api/account'
@@ -510,6 +511,10 @@ async function getIndexInfo() {
isLoading.value = false
}
}
+async function updateUserIndexSettings() {
+ await SaveSetting('Index', accountInfo.value.settings.index)
+ message.success('已保存')
+}
onActivated(() => {
if (route.query.tab) {
@@ -522,6 +527,7 @@ onActivated(() => {
onMounted(async () => {
await RequestBiliUserData()
indexDisplayInfo.value = await getIndexInfo()
+ accountInfo.value.settings.index.allowDisplayInIndex = accountInfo.value.settings.index.allowDisplayInIndex ?? true
})
@@ -557,6 +563,11 @@ onMounted(async () => {
+ 常规
+
+ 允许显示在网站主页
+
+
通知