diff --git a/admin/src/views/sites/HomepageEdit.vue b/admin/src/views/sites/HomepageEdit.vue index a64e371..cf61380 100644 --- a/admin/src/views/sites/HomepageEdit.vue +++ b/admin/src/views/sites/HomepageEdit.vue @@ -55,10 +55,24 @@ 填写同域可下载的静态地址(需将安装包放到站点 promotion/downloads/ 并部署)。前台为「Windows 版下载」「安卓版下载」直连,不跳转整页。

- +
+ + 选择链接 +
- +
+ + 选择链接 +
直播(前台 /live) @@ -157,7 +171,7 @@ const saving = ref(false) const downloading = ref(false) const formRef = ref(null) const linkPickerVisible = ref(false) -/** @type {import('vue').Ref<{ type: 'nav' | 'download' | 'platform'; index?: number }>} */ +/** @type {import('vue').Ref<{ type: 'nav' | 'download' | 'download_windows' | 'download_android' | 'platform'; index?: number }>} */ const linkPickTarget = ref({ type: 'download' }) const defaultForm = () => ({ @@ -285,6 +299,10 @@ function onLinkPicked(url) { form.nav_links[t.index].url = url } else if (t.type === 'download') { form.download_url = url + } else if (t.type === 'download_windows') { + form.download_windows_url = url + } else if (t.type === 'download_android') { + form.download_android_url = url } else if (t.type === 'platform' && typeof t.index === 'number') { form.platforms[t.index].url = url } diff --git a/admin/src/views/sites/LiveBroadcast.vue b/admin/src/views/sites/LiveBroadcast.vue index 712050c..5163722 100644 --- a/admin/src/views/sites/LiveBroadcast.vue +++ b/admin/src/views/sites/LiveBroadcast.vue @@ -70,7 +70,39 @@ 开始直播 结束直播 -
+
+
+ + + + 统计加载中或暂不可用 + +