1
0
mirror of https://github.com/ialley-workshop-open/uni-halo.git synced 2026-06-12 13:19:31 +08:00

新增:文章版权说明;

新增:文章详情点击标签跳转查询标签下的文章列表;
优化:调整markdown文字大小
This commit is contained in:
小莫唐尼
2022-12-10 14:24:36 +08:00
parent 70c5b34de0
commit e46c5c2b6f
12 changed files with 319 additions and 33 deletions
+24
View File
@@ -0,0 +1,24 @@
/**
* 标签接口
* @see https://api.halo.run/content-api.html#tag/tag-controller
*/
import HttpHandler from '@/common/http/request.js'
export default {
/**
* 查询标签列表
* @param {Object} params 查询参数
*/
getTagList: (params) => {
return HttpHandler.Get('/api/content/tags', params)
},
/**
* 查询标签下的文章
* @param {String} slug 别名
* @param {Object} params 查询参数
*/
getTagPostsList: (slug, params) => {
return HttpHandler.Get(`/api/content/tags/${slug}/posts`, params)
},
}