合并 设计平台菜单(pdf上传和编辑器)
This commit is contained in:
parent
2938528c2e
commit
796983e9e8
@ -7,6 +7,12 @@ export default {
|
||||
runPlanManage: 'Run plan',
|
||||
productEdit: 'Product editor',
|
||||
|
||||
newDesignEditor: 'Editor',
|
||||
newDesignEditorList: 'Editor List',
|
||||
newDesignDraftEditorList: 'Draft Editor List',
|
||||
uploadPdf: 'Upload Pdf',
|
||||
fileManage:'File Manage',
|
||||
|
||||
designhomePage: 'Public map',
|
||||
designUserPage: 'Personal map',
|
||||
newDesignUserPage: 'Personal map',
|
||||
|
@ -8,6 +8,7 @@ export default {
|
||||
newDesignEditorList: '图文列表',
|
||||
newDesignDraftEditorList: '文章草稿',
|
||||
uploadPdf: 'PDF上传',
|
||||
fileManage:'文件管理',
|
||||
|
||||
mapManage: '地图管理',
|
||||
skinManage: '皮肤管理',
|
||||
|
@ -1143,7 +1143,7 @@ export const asyncRouter = [
|
||||
path: '/editor',
|
||||
component: Layout,
|
||||
meta: {
|
||||
i18n: 'router.newDesignEditor',
|
||||
i18n: 'router.fileManage',
|
||||
roles: [admin, user]
|
||||
},
|
||||
children: [
|
||||
@ -1162,24 +1162,14 @@ export const asyncRouter = [
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
path: 'draft',
|
||||
component: Ueditor,
|
||||
meta: {
|
||||
i18n: 'router.newDesignEditor'
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '/uploading',
|
||||
component: Layout,
|
||||
meta: {
|
||||
i18n: 'router.uploadPdf',
|
||||
roles: [admin, user]
|
||||
},
|
||||
children: [
|
||||
},
|
||||
{
|
||||
path: 'list',
|
||||
path: 'uploading/list',
|
||||
component: UploadPdfList,
|
||||
meta: {
|
||||
i18n: 'router.uploadPdf'
|
||||
@ -1187,6 +1177,23 @@ export const asyncRouter = [
|
||||
}
|
||||
]
|
||||
},
|
||||
// {
|
||||
// path: '/uploading',
|
||||
// component: Layout,
|
||||
// meta: {
|
||||
// i18n: 'router.uploadPdf',
|
||||
// roles: [admin, user]
|
||||
// },
|
||||
// children: [
|
||||
// {
|
||||
// path: 'list',
|
||||
// component: UploadPdfList,
|
||||
// meta: {
|
||||
// i18n: 'router.uploadPdf'
|
||||
// }
|
||||
// }
|
||||
// ]
|
||||
// },
|
||||
{ // 新个人地图
|
||||
path: '/design',
|
||||
component: Layout,
|
||||
|
@ -89,7 +89,8 @@ export default {
|
||||
|
||||
this.editor.create(); // 创建富文本实例
|
||||
|
||||
this.handleEdit();
|
||||
if (this.draft) { this.handleEdit(); }
|
||||
|
||||
},
|
||||
beforeDestroy() {
|
||||
// 调用销毁 API 对当前编辑器实例进行销毁
|
||||
|
Loading…
Reference in New Issue
Block a user