diff --git a/src/router/index.js b/src/router/index.js index 9a940b4..b5110a1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -151,19 +151,6 @@ export const constantRoutes = [ } ] }, - // { - // path: '/demo', - // component: Layout, - // children: [ - // { - // path: 'index', - // name: 'demo', - // component: () => import('@/views/demo/index'), - // meta: { title: 'demo', icon: 'example' } - // } - // ] - // }, - { path: '/markdown', component: Layout, @@ -177,31 +164,6 @@ export const constantRoutes = [ } ] }, - - { - path: '/articles/article', - component: Layout, - children: [ - { - path: '', - name: 'article', - component: () => import('@/views/public/article/index'), - hidden: true, - meta: { keepAlive: false } - } - ] - }, - { - path: 'articles', - component: Layout, - hidden: true, - children: [ - { - path: `${document.location.protocol}//${window.location.host}/articles`, - meta: { title: '关联博客', icon: 'link', keepAlive: false } - } - ] - }, { path: '/setting/user', component: Layout, @@ -264,18 +226,6 @@ export const constantRoutes = [ } ] }, - // { - // path: '/setting/manager-categories', - // component: Layout, - // children: [ - // { - // path: '', - // name: 'manager-categories', - // component: () => import('@/views/setting/articles/categoryManager'), - // meta: { title: '分类管理', icon: 'leimupinleifenleileibie' } - // } - // ] - // }, { path: '/setting/manager-cloud', component: Layout, @@ -288,19 +238,6 @@ export const constantRoutes = [ } ] }, - { - path: '/articles', - component: Layout, - hidden: true, - children: [ - { - path: '', - name: 'articles', - component: () => import('@/views/public/articles/index'), - meta: { title: '文档列表', icon: 'md-list', keepAlive: false } - } - ] - }, { path: '/s', component: Layout, diff --git a/src/views/markdown/index.vue b/src/views/markdown/index.vue index 02abe4a..e1b57a6 100644 --- a/src/views/markdown/index.vue +++ b/src/views/markdown/index.vue @@ -264,6 +264,7 @@ this.currentDarft = false this.file = res.data } + console.log(this.file) // 初始化编辑器 if(isReload){ this.contentEditor.setValue(this.file.contentText) diff --git a/src/views/setting/articles/articleManager.vue b/src/views/setting/articles/articleManager.vue index 5cdf26a..9c93640 100644 --- a/src/views/setting/articles/articleManager.vue +++ b/src/views/setting/articles/articleManager.vue @@ -75,7 +75,7 @@ label="标题">