提交 2294040c authored 作者: lihuihui's avatar lihuihui

update

上级 f6c9e6bf
......@@ -62,7 +62,9 @@ export default {
async fetch() {
const params = {
project_id: process.env.projectId,
type_tag: 'article_publish_class'
type_tag: 'article_publish_class',
page: 1,
limit: 4
}
await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => {
this.data = res.data.data || []
......
......@@ -60,7 +60,9 @@ export default {
async fetch() {
const params = {
project_id: process.env.projectId,
type_tag: 'article_news'
type_tag: 'article_news',
page: 1,
limit: 3
}
this.listData = await this.$axios.get('/api/cms/api/v1/articles', { params }).then(res => {
const data = []
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论