Fix issues with MediaCard and SubscribeListView components

This commit is contained in:
jxxghp
2024-05-05 11:54:20 +08:00
parent 37e5e57d5b
commit 271d59ca51
3 changed files with 280 additions and 294 deletions

View File

@@ -19,6 +19,8 @@ const props = defineProps({
height: String,
})
const store = useStore()
// 提示框
const $toast = useToast()
@@ -288,6 +290,8 @@ async function getMediaSeasons() {
// 查询订阅弹窗规则
async function queryDefaultSubscribeConfig() {
// 非管理员不显示
if (!store.state.auth.superUser) return false
try {
let subscribe_config_url = ''
if (props.media?.type === '电影') subscribe_config_url = 'system/setting/DefaultMovieSubscribeConfig'