Merge branch 'jxxghp:main' into main

This commit is contained in:
maicss
2024-03-01 20:16:10 +08:00
committed by GitHub
4 changed files with 10 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "moviepilot",
"version": "1.6.8-1",
"version": "1.6.9",
"private": true,
"bin": "dist/service.js",
"scripts": {

View File

@@ -658,6 +658,9 @@ export interface TorrentInfo {
// 剩余免费时间
freedate_diff: string
// 种子类型
category: string
}
// 识别元数据

View File

@@ -6,10 +6,6 @@ import NoDataFound from '@/components/NoDataFound.vue'
import DownloadingCard from '@/components/cards/DownloadingCard.vue'
import store from '@/store'
// 从Vuex Store中获取用户信息
const superUser = store.state.auth.superUser
const userName = store.state.auth.userName
// 定时器
let refreshTimer: NodeJS.Timer | null = null
@@ -42,6 +38,9 @@ function onRefresh() {
// 过滤数据,管理员用户显示全部,非管理员只显示自己的订阅
const filteredDataList = computed(() => {
// 从Vuex Store中获取用户信息
const superUser = store.state.auth.superUser
const userName = store.state.auth.userName
if (superUser)
return dataList.value
else

View File

@@ -11,10 +11,6 @@ const props = defineProps({
type: String,
})
// 从Vuex Store中获取用户信息
const superUser = store.state.auth.superUser
const userName = store.state.auth.userName
// 是否刷新过
const isRefreshed = ref(false)
@@ -47,6 +43,9 @@ function onRefresh() {
// 过滤数据,管理员用户显示全部,非管理员只显示自己的订阅
const filteredDataList = computed(() => {
// 从Vuex Store中获取用户信息
const superUser = store.state.auth.superUser
const userName = store.state.auth.userName
if (superUser)
return dataList.value.filter(data => data.type === props.type)
else