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