fix(fe): 3 个 TS 错
1. articles.ts: ArticleDetail extends ArticleListItem 重复定义 is_read 删了(继承父类的 boolean) 2. Feed.vue: import readsApi + useMessage 3. Feed.vue: 加 const message = useMessage()
This commit is contained in:
@@ -79,7 +79,6 @@ export interface ArticleDetail extends ArticleListItem {
|
||||
entities?: Record<string, any> | null
|
||||
sentiment?: number | null
|
||||
duplicate_of?: number | null
|
||||
is_read?: boolean
|
||||
}
|
||||
|
||||
export interface LlmSetting {
|
||||
|
||||
@@ -3,9 +3,9 @@ import { computed, onMounted, ref } from 'vue'
|
||||
import { useRouter } from 'vue-router'
|
||||
import {
|
||||
NCard, NSpace, NTag, NText, NSelect, NInput, NButton, NEmpty, NSkeleton, NSpin,
|
||||
NPagination,
|
||||
NPagination, useMessage,
|
||||
} from 'naive-ui'
|
||||
import { articlesApi, sourcesApi, type ArticleListItem, type Source } from '@/api/articles'
|
||||
import { articlesApi, readsApi, sourcesApi, type ArticleListItem, type Source } from '@/api/articles'
|
||||
import { useAuthStore } from '@/stores/auth'
|
||||
import dayjs from 'dayjs'
|
||||
import relativeTime from 'dayjs/plugin/relativeTime'
|
||||
@@ -15,6 +15,7 @@ dayjs.locale('zh-cn')
|
||||
|
||||
const router = useRouter()
|
||||
const auth = useAuthStore()
|
||||
const message = useMessage()
|
||||
const items = ref<ArticleListItem[]>([])
|
||||
const sources = ref<Source[]>([])
|
||||
const loading = ref(false)
|
||||
|
||||
Reference in New Issue
Block a user