mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
fix
This commit is contained in:
@@ -6,10 +6,6 @@ import NoDataFound from '@/components/NoDataFound.vue'
|
|||||||
import DownloadingCard from '@/components/cards/DownloadingCard.vue'
|
import DownloadingCard from '@/components/cards/DownloadingCard.vue'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
|
||||||
// 从Vuex Store中获取用户信息
|
|
||||||
const superUser = store.state.auth.superUser
|
|
||||||
const userName = store.state.auth.userName
|
|
||||||
|
|
||||||
// 定时器
|
// 定时器
|
||||||
let refreshTimer: NodeJS.Timer | null = null
|
let refreshTimer: NodeJS.Timer | null = null
|
||||||
|
|
||||||
@@ -42,6 +38,9 @@ function onRefresh() {
|
|||||||
|
|
||||||
// 过滤数据,管理员用户显示全部,非管理员只显示自己的订阅
|
// 过滤数据,管理员用户显示全部,非管理员只显示自己的订阅
|
||||||
const filteredDataList = computed(() => {
|
const filteredDataList = computed(() => {
|
||||||
|
// 从Vuex Store中获取用户信息
|
||||||
|
const superUser = store.state.auth.superUser
|
||||||
|
const userName = store.state.auth.userName
|
||||||
if (superUser)
|
if (superUser)
|
||||||
return dataList.value
|
return dataList.value
|
||||||
else
|
else
|
||||||
|
|||||||
@@ -11,10 +11,6 @@ const props = defineProps({
|
|||||||
type: String,
|
type: String,
|
||||||
})
|
})
|
||||||
|
|
||||||
// 从Vuex Store中获取用户信息
|
|
||||||
const superUser = store.state.auth.superUser
|
|
||||||
const userName = store.state.auth.userName
|
|
||||||
|
|
||||||
// 是否刷新过
|
// 是否刷新过
|
||||||
const isRefreshed = ref(false)
|
const isRefreshed = ref(false)
|
||||||
|
|
||||||
@@ -47,6 +43,9 @@ function onRefresh() {
|
|||||||
|
|
||||||
// 过滤数据,管理员用户显示全部,非管理员只显示自己的订阅
|
// 过滤数据,管理员用户显示全部,非管理员只显示自己的订阅
|
||||||
const filteredDataList = computed(() => {
|
const filteredDataList = computed(() => {
|
||||||
|
// 从Vuex Store中获取用户信息
|
||||||
|
const superUser = store.state.auth.superUser
|
||||||
|
const userName = store.state.auth.userName
|
||||||
if (superUser)
|
if (superUser)
|
||||||
return dataList.value.filter(data => data.type === props.type)
|
return dataList.value.filter(data => data.type === props.type)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user