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:
@@ -16,6 +16,7 @@ import archive from './archive.js'
|
||||
import article from './article.js'
|
||||
import blogger from './blogger.js'
|
||||
import category from './category.js'
|
||||
import tag from './tag.js'
|
||||
import comment from './comment.js'
|
||||
import journal from './journal.js'
|
||||
import link from './link.js'
|
||||
@@ -44,6 +45,7 @@ const ApiManager = {
|
||||
...article,
|
||||
...blogger,
|
||||
...category,
|
||||
...tag,
|
||||
...comment,
|
||||
...journal,
|
||||
...link,
|
||||
|
||||
+24
@@ -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)
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user