合并 设计平台菜单(pdf上传和编辑器)

This commit is contained in:
joylink_cuiweidong 2021-05-27 13:28:35 +08:00
parent 2938528c2e
commit 796983e9e8
4 changed files with 30 additions and 15 deletions

View File

@ -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',

View File

@ -8,6 +8,7 @@ export default {
newDesignEditorList: '图文列表',
newDesignDraftEditorList: '文章草稿',
uploadPdf: 'PDF上传',
fileManage:'文件管理',
mapManage: '地图管理',
skinManage: '皮肤管理',

View File

@ -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,

View File

@ -89,7 +89,8 @@ export default {
this.editor.create(); //
this.handleEdit();
if (this.draft) { this.handleEdit(); }
},
beforeDestroy() {
// API