Skip to content

Commit 3d8cfbb

Browse files
committed
v 1.0.9.3 更新控制台文章管理
1 parent ed41c74 commit 3d8cfbb

4 files changed

Lines changed: 565 additions & 4 deletions

File tree

frontend/src/layouts/ConsoleLayout.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,22 @@
4040
</router-link>
4141

4242
<div class="console-nav-group-title">内容</div>
43-
<router-link to="/console/articles" class="console-nav-item" active-class="active">
43+
<router-link to="/console/articles/manage" class="console-nav-item" active-class="active">
4444
<span class="console-nav-ico" aria-hidden="true">
4545
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
4646
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
4747
<path d="M14 2v6h6M16 13H8M16 17H8M10 9H8" />
4848
</svg>
4949
</span>
50-
文章
50+
文章管理
51+
</router-link>
52+
<router-link to="/console/articles/new" class="console-nav-item" active-class="active">
53+
<span class="console-nav-ico" aria-hidden="true">
54+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
55+
<path d="M12 5v14M5 12h14" />
56+
</svg>
57+
</span>
58+
新建文章
5159
</router-link>
5260
<router-link to="/console/changelog" class="console-nav-item" active-class="active">
5361
<span class="console-nav-ico" aria-hidden="true">

frontend/src/router/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import ChangelogDetailView from '../views/ChangelogDetailView.vue'
1111
import ConsoleLayout from '../layouts/ConsoleLayout.vue'
1212
import ConsoleDashboardView from '../views/ConsoleDashboardView.vue'
1313
import ConsoleProfileView from '../views/ConsoleProfileView.vue'
14-
import ConsoleArticlesView from '../views/ConsoleArticlesView.vue'
14+
import ConsoleArticleManageView from '../views/ConsoleArticleManageView.vue'
15+
import ConsoleArticleComposeView from '../views/ConsoleArticleComposeView.vue'
1516
import ConsoleChangelogView from '../views/ConsoleChangelogView.vue'
1617
import ConsoleAttachmentsView from '../views/ConsoleAttachmentsView.vue'
1718
import ConsoleCommentsView from '../views/ConsoleCommentsView.vue'
@@ -39,7 +40,9 @@ const routes = [
3940
children: [
4041
{ path: '', name: 'consoleDashboard', component: ConsoleDashboardView },
4142
{ path: 'profile', name: 'consoleProfile', component: ConsoleProfileView },
42-
{ path: 'articles', name: 'consoleArticles', component: ConsoleArticlesView },
43+
{ path: 'articles', redirect: '/console/articles/manage' },
44+
{ path: 'articles/manage', name: 'consoleArticleManage', component: ConsoleArticleManageView },
45+
{ path: 'articles/new', name: 'consoleArticleCompose', component: ConsoleArticleComposeView },
4346
{ path: 'changelog', name: 'consoleChangelog', component: ConsoleChangelogView },
4447
{ path: 'attachments', name: 'consoleAttachments', component: ConsoleAttachmentsView },
4548
{ path: 'comments', name: 'consoleComments', component: ConsoleCommentsView },

0 commit comments

Comments
 (0)