fix 开关状态显示问题

This commit is contained in:
jxxghp
2023-08-17 11:08:04 +08:00
parent 511ea625a1
commit 9dd1a97ba9
3 changed files with 12 additions and 0 deletions

View File

@@ -51,6 +51,11 @@ const siteName = ref('')
// 订阅编辑表单
const rssForm = reactive<any>(props.media ?? {})
// 类型转换
rssForm.best_version = rssForm.best_version === 1
rssForm.proxy = rssForm.proxy === 1
rssForm.filter = rssForm.filter === 1
// 上一次更新时间
const lastUpdateText = ref(
`${

View File

@@ -90,6 +90,10 @@ const statusItems = [
// 站点编辑表单数据
const siteForm = reactive<any>(cardProps.site ?? {})
// 类型转换
siteForm.proxy = siteForm.proxy === 1
siteForm.render = siteForm.render === 1
// 打开种子详情页面
function openTorrentDetail(page_url: string) {
window.open(page_url, '_blank')

View File

@@ -32,6 +32,9 @@ const selectSitesOptions = ref<{ [key: number]: string }[]>([])
// 订阅编辑表单
const subscribeForm = reactive<any>(props.media ?? {})
// 类型转换
subscribeForm.best_version = subscribeForm.best_version === 1
// 上一次更新时间
const lastUpdateText = ref(
`${