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 @@ + + + + + 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 @@ + + + + +