修复已知问题
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import request from '@/utils/request';
|
||||
import type { ApiResult, PageResult } from '@/api';
|
||||
import type { CmsArticle, CmsArticleParam } from './model';
|
||||
import { SERVER_API_URL } from '@/config/setting';
|
||||
import { MODULES_API_URL, SERVER_API_URL } from "@/config/setting";
|
||||
import type { ArticleParam } from "@/api/cms/article/model";
|
||||
|
||||
/**
|
||||
* 分页查询文章
|
||||
@@ -104,3 +105,13 @@ export async function getCmsArticle(id: number) {
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
export async function getCount(params: ArticleParam) {
|
||||
const res = await request.get(SERVER_API_URL + '/cms/cms-article/data', {
|
||||
params
|
||||
});
|
||||
if (res.data.code === 0) {
|
||||
return res.data.data;
|
||||
}
|
||||
return Promise.reject(new Error(res.data.message));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user