diff --git a/front-end/h5/src/views/work-manager/form-stat/index.vue b/front-end/h5/src/views/work-manager/form-stat/index.vue
index e22e70a9..9dc082a5 100644
--- a/front-end/h5/src/views/work-manager/form-stat/index.vue
+++ b/front-end/h5/src/views/work-manager/form-stat/index.vue
@@ -37,11 +37,13 @@ export default {
}
},
render (h) {
+ const that = this
return (
查看数据]
+ // 查看数据
+ return [{that.$t('basicData.viewData')}]
}
}}>
diff --git a/front-end/h5/src/views/work-manager/index.vue b/front-end/h5/src/views/work-manager/index.vue
index ade525d3..0dbcbb2c 100644
--- a/front-end/h5/src/views/work-manager/index.vue
+++ b/front-end/h5/src/views/work-manager/index.vue
@@ -4,10 +4,12 @@
import '@/components/core/styles/index.scss'
import LogoOfHeader from '@/components/common/header/logo.js'
import ExternalLinksOfHeader from '@/components/common/header/links.js'
+import LangSelect from '@/components/common/header/LangSelect.vue'
const sidebarMenus = [
{
label: '我的作品',
+ i18nLabel: 'sidebar.myWorks',
value: 'workManager',
antIcon: 'bars',
key: '1',
@@ -15,12 +17,14 @@ const sidebarMenus = [
},
{
label: '数据中心',
+ i18nLabel: 'sidebar.dataCenter',
value: 'dataCenter',
antIcon: 'snippets',
key: '2',
children: [
{
label: '基础数据',
+ i18nLabel: 'sidebar.basicData',
value: 'basicData',
antIcon: 'snippets',
key: '2-1',
@@ -30,12 +34,14 @@ const sidebarMenus = [
},
{
label: '模板中心',
+ i18nLabel: 'sidebar.templateCenter',
value: 'templateCenter',
antIcon: 'snippets',
key: '3',
children: [
{
- label: '免费模板',
+ label: '模板列表',
+ i18nLabel: 'sidebar.freeTemplates',
value: 'freeTemplates',
antIcon: 'snippets',
key: '3-1',
@@ -45,6 +51,7 @@ const sidebarMenus = [
},
{
label: '账号中心',
+ i18nLabel: 'sidebar.accountCenter',
value: 'freeTemplate',
antIcon: 'appstore',
key: '4'
@@ -56,17 +63,20 @@ export default {
// PreView,
// Sidebar
LogoOfHeader,
- ExternalLinksOfHeader
+ ExternalLinksOfHeader,
+ LangSelect
},
methods: {
renderSidebar (menus) {
- const renderLabel = menu => menu.routerName ?
{menu.label} : menu.label
+ // const renderLabel = menu => menu.routerName ?
{menu.label} : menu.label
+ const renderLabel = menu => menu.routerName ?
{this.$t(menu.i18nLabel)} : this.$t(menu.i18nLabel)
return menus.map(menu => (
menu.children
? (
- {menu.label}
+ {/** {menu.label} */}
+ {this.$t(menu.i18nLabel)}
{
(menu.children).map(submenu => (
{renderLabel(submenu)}
@@ -89,6 +99,7 @@ export default {