import request from '@/utils/request' export function getIndexData(q){ return request.get('index', q, {login: false}) } /* * 文章列表 * */ export function getArticle(q) { return request.get("/article/list", q, { login: false }); } /* * 文章详情 * */ export function getArticleDetail(q) { return request.get("/article/details/" + q.id); }