From af40056809a41c6a5bc180fbd8a3faa164e5d8d2 Mon Sep 17 00:00:00 2001
From: jxxghp
Date: Sun, 2 Jul 2023 00:17:50 +0800
Subject: [PATCH] fix subscribe
---
.env.development | 2 +-
src/api/types.ts | 2 +
src/components/cards/MediaCard.vue | 76 +++++++++++++++++++++++-
src/views/discover/MediaCardListView.vue | 1 -
4 files changed, 77 insertions(+), 4 deletions(-)
diff --git a/.env.development b/.env.development
index 64c2bdd4..b27eade5 100644
--- a/.env.development
+++ b/.env.development
@@ -1 +1 @@
-VITE_API_BASE_URL=http://10.10.10.10:3001/api/v1/
+VITE_API_BASE_URL=http://localhost:3001/api/v1/
diff --git a/src/api/types.ts b/src/api/types.ts
index 5b26e2a1..9e60d3f3 100644
--- a/src/api/types.ts
+++ b/src/api/types.ts
@@ -90,6 +90,8 @@ export interface MediaInfo {
title?: string
// 年份
year?: string
+ // 季号
+ season?: number;
// TMDB ID
tmdb_id?: number
// IMDB ID
diff --git a/src/components/cards/MediaCard.vue b/src/components/cards/MediaCard.vue
index 18b0c3ce..a1ac04bb 100644
--- a/src/components/cards/MediaCard.vue
+++ b/src/components/cards/MediaCard.vue
@@ -1,5 +1,6 @@
@@ -83,7 +151,11 @@ const getChipColor = (type: string) => {
-
+
diff --git a/src/views/discover/MediaCardListView.vue b/src/views/discover/MediaCardListView.vue
index df55bb25..5c16fea4 100644
--- a/src/views/discover/MediaCardListView.vue
+++ b/src/views/discover/MediaCardListView.vue
@@ -42,7 +42,6 @@ const getParams = () => {
// 获取订阅列表数据
const fetchData = async ({ done }) => {
- console.log("entry", props.apipath);
try {
if (!props.apipath) {
return;