修改:独立页面管理
This commit is contained in:
parent
4615b782f6
commit
793c682ac5
@ -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,
|
||||
|
||||
@ -264,6 +264,7 @@
|
||||
this.currentDarft = false
|
||||
this.file = res.data
|
||||
}
|
||||
console.log(this.file)
|
||||
// 初始化编辑器
|
||||
if(isReload){
|
||||
this.contentEditor.setValue(this.file.contentText)
|
||||
|
||||
@ -75,7 +75,7 @@
|
||||
label="标题">
|
||||
<template slot-scope="scope">
|
||||
<a :title="'编辑 '+scope.row.name" @click="editArticle(scope.row.id)">{{scope.row.name}}<svg-icon icon-class="bianji-"></svg-icon></a>
|
||||
<router-link :title="'浏览 '+scope.row.name" :to="'/articles/'+scope.row.slug" target="_blank"><svg-icon class="wailian" icon-class="wailian"></svg-icon></router-link>
|
||||
<router-link :title="'浏览 '+scope.row.name" :to="(alonePage?'/articles/o/':'/articles/s/')+scope.row.slug" target="_blank"><svg-icon class="wailian" icon-class="wailian"></svg-icon></router-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -97,7 +97,8 @@
|
||||
prop="username"
|
||||
label="作者">
|
||||
<template slot-scope="scope">
|
||||
<router-link :to="$route.path+'?uid='+scope.row.userId">{{scope.row.username}}</router-link>
|
||||
<router-link v-if="!alonePage" :to="$route.path+'?uid='+scope.row.userId">{{scope.row.username}}</router-link>
|
||||
<span v-if="alonePage" :to="$route.path+'?uid='+scope.row.userId">{{scope.row.username}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -113,10 +114,10 @@
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="updateDate"
|
||||
label="日期"
|
||||
label="发布日期"
|
||||
width="160">
|
||||
<template slot-scope="scope">
|
||||
<span>{{scope.row.updateDate.substring(0, 16)}}</span>
|
||||
<span>{{scope.row.uploadDate.substring(0, 16)}}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user