From 2eaf32e8d8c07cd1ecf7c2b36024f6988e81b6de Mon Sep 17 00:00:00 2001
From: liuyx <1517482303@qq.com>
Date: Wed, 23 Nov 2022 22:03:06 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=91=E5=B8=83=E6=96=87?=
=?UTF-8?q?=E7=AB=A0=E4=B8=8E=E6=96=87=E7=AB=A0=E5=88=97=E8=A1=A8=E6=A8=A1?=
=?UTF-8?q?=E5=9D=97?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
admin/src/layout/components/Header.vue | 5 +-
admin/src/router/index.js | 5 +
admin/src/utils/Upload.vue | 107 ------------
admin/src/views/article/Article.vue | 223 ++++++++++++++++++++++++
admin/src/views/article/ArticleList.vue | 144 +++++++++++++++
5 files changed, 376 insertions(+), 108 deletions(-)
delete mode 100644 admin/src/utils/Upload.vue
create mode 100644 admin/src/views/article/Article.vue
create mode 100644 admin/src/views/article/ArticleList.vue
diff --git a/admin/src/layout/components/Header.vue b/admin/src/layout/components/Header.vue
index 16ba538..4fa08b9 100644
--- a/admin/src/layout/components/Header.vue
+++ b/admin/src/layout/components/Header.vue
@@ -69,7 +69,7 @@ const closeAllTab = () => {
}
const goTo = (item) => {
- router.push(item)
+ router.push(item.path)
}
const removeTab = (item) => {
@@ -149,6 +149,9 @@ watch(
border-top: 1px dotted #a8a8a8;
.tabs-content {
text-align: center;
+ overflow-x: auto;
+ overflow-y: hidden;
+ white-space: nowrap;
.tabs-content-item {
cursor: pointer;
margin-right: 5px;
diff --git a/admin/src/router/index.js b/admin/src/router/index.js
index f9e549c..f13999c 100644
--- a/admin/src/router/index.js
+++ b/admin/src/router/index.js
@@ -17,6 +17,11 @@ const routes = [
name: '发布文章',
component: () => import('@/views/article/Article.vue')
},
+ {
+ path: '/article/:id',
+ name: '修改文章',
+ component: () => import('@/views/article/Article.vue')
+ },
{
path: '/article-list',
name: '文章列表',
diff --git a/admin/src/utils/Upload.vue b/admin/src/utils/Upload.vue
deleted file mode 100644
index 440f109..0000000
--- a/admin/src/utils/Upload.vue
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/admin/src/views/article/Article.vue b/admin/src/views/article/Article.vue
new file mode 100644
index 0000000..3140462
--- /dev/null
+++ b/admin/src/views/article/Article.vue
@@ -0,0 +1,223 @@
+
+
+
+
+
+
+
+
+
+ 发布文章
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ article.category }}
+
+
+
+ 分类
+
+ 添加分类
+
+
+
+
+
+
+
+ {{ item.name }}
+
+
+
+
+ 添加标签
+
+ 标签
+
+
+ {{ item.name }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/admin/src/views/article/ArticleList.vue b/admin/src/views/article/ArticleList.vue
new file mode 100644
index 0000000..97a6255
--- /dev/null
+++ b/admin/src/views/article/ArticleList.vue
@@ -0,0 +1,144 @@
+
+
+ 批量删除
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.category }}
+
+
+
+
+
+ {{ tag }}
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+