refactor: implement Tags component for improved tag display and update news types

This commit is contained in:
Ardeman
2025-03-09 11:56:57 +08:00
parent 1b6321f2bd
commit ee816b8db7
7 changed files with 57 additions and 183 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import type { TTagResponse } from '~/apis/common/get-tags'
export type TNews = {
title: string
description: string
@@ -14,7 +16,7 @@ type TNewsDetail = {
author: string
date: Date
slug: string
tags?: Array<string>
tags?: TTagResponse[]
isPremium?: boolean
categories?: Array<string>
}