From 9859ac78c59924100cc04455c986a13cd50e2551 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=8E=E8=82=96=E7=A3=8A?= <18851179580@163.com> Date: Mon, 3 Mar 2025 09:53:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8D=9A=E5=AE=A2=E9=80=89?= =?UTF-8?q?=E9=A1=B9=E5=8D=A1=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/blog.ts | 35 ++++++++++++++++ src/components/common/div-content/index.vue | 8 ++++ src/components/model-blog-list/index.vue | 46 ++++++++++----------- src/components/model-blog-tabs/index.vue | 36 ++++++++-------- 4 files changed, 84 insertions(+), 41 deletions(-) create mode 100644 src/api/blog.ts diff --git a/src/api/blog.ts b/src/api/blog.ts new file mode 100644 index 00000000..fb96d459 --- /dev/null +++ b/src/api/blog.ts @@ -0,0 +1,35 @@ +import request from '@/utils/request'; + +class ArticleAPI { + /** 链接初始化接口 */ + static getInit() { + return request({ + url: `diyapi/linkinit`, + method: 'post', + }); + } + /** 文章指定数据 */ + static getAppointList(data: any) { + return request({ + url: `diyapi/articleappointdata`, + method: 'post', + data, + }); + } + /** 文章自动数据 */ + static getAutoList(data: any) { + return request({ + url: `diyapi/articleautodata`, + method: 'post', + data, + }); + } +} + +export default ArticleAPI; + +// 分类树结构 +export interface Tree { + /** 主键 */ + id: string; +} diff --git a/src/components/common/div-content/index.vue b/src/components/common/div-content/index.vue index 6ec33899..d398e5cb 100644 --- a/src/components/common/div-content/index.vue +++ b/src/components/common/div-content/index.vue @@ -106,6 +106,14 @@ + + + +