修改:独立页面管理
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',
|
path: '/markdown',
|
||||||
component: Layout,
|
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',
|
path: '/setting/user',
|
||||||
component: Layout,
|
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',
|
path: '/setting/manager-cloud',
|
||||||
component: Layout,
|
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',
|
path: '/s',
|
||||||
component: Layout,
|
component: Layout,
|
||||||
|
|||||||
@ -264,6 +264,7 @@
|
|||||||
this.currentDarft = false
|
this.currentDarft = false
|
||||||
this.file = res.data
|
this.file = res.data
|
||||||
}
|
}
|
||||||
|
console.log(this.file)
|
||||||
// 初始化编辑器
|
// 初始化编辑器
|
||||||
if(isReload){
|
if(isReload){
|
||||||
this.contentEditor.setValue(this.file.contentText)
|
this.contentEditor.setValue(this.file.contentText)
|
||||||
|
|||||||
@ -75,7 +75,7 @@
|
|||||||
label="标题">
|
label="标题">
|
||||||
<template slot-scope="scope">
|
<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>
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -97,7 +97,8 @@
|
|||||||
prop="username"
|
prop="username"
|
||||||
label="作者">
|
label="作者">
|
||||||
<template slot-scope="scope">
|
<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>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -113,10 +114,10 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="updateDate"
|
prop="updateDate"
|
||||||
label="日期"
|
label="发布日期"
|
||||||
width="160">
|
width="160">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<span>{{scope.row.updateDate.substring(0, 16)}}</span>
|
<span>{{scope.row.uploadDate.substring(0, 16)}}</span>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user