Skip to content

Commit f629d5a

Browse files
committed
fix: 调整默认 router.config.js 的i18n翻译
1 parent 8a94420 commit f629d5a

File tree

3 files changed

+36
-38
lines changed

3 files changed

+36
-38
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-antd-pro",
3-
"version": "3.0.2",
3+
"version": "3.0.4",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve",

src/layouts/BasicLayout.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
-->
2222
<template v-slot:menuHeaderRender>
2323
<div>
24-
<logo-svg />
24+
<img src="@/assets/logo.svg" />
2525
<h1>{{ title }}</h1>
2626
</div>
2727
</template>
@@ -62,15 +62,13 @@ import defaultSettings from '@/config/defaultSettings'
6262
import RightContent from '@/components/GlobalHeader/RightContent'
6363
import GlobalFooter from '@/components/GlobalFooter'
6464
import Ads from '@/components/Other/CarbonAds'
65-
import LogoSvg from '../assets/logo.svg?inline'
6665
6766
export default {
6867
name: 'BasicLayout',
6968
components: {
7069
SettingDrawer,
7170
RightContent,
7271
GlobalFooter,
73-
LogoSvg,
7472
Ads
7573
},
7674
data () {

src/mock/services/user.js

+34-34
Original file line numberDiff line numberDiff line change
@@ -480,8 +480,8 @@ const userNav = options => {
480480
parentId: 0,
481481
id: 1,
482482
meta: {
483+
title: 'menu.dashboard',
483484
icon: 'dashboard',
484-
title: '仪表盘',
485485
show: true
486486
},
487487
component: 'RouteView',
@@ -492,7 +492,7 @@ const userNav = options => {
492492
parentId: 1,
493493
id: 7,
494494
meta: {
495-
title: '工作台',
495+
title: 'menu.dashboard.monitor',
496496
show: true
497497
},
498498
component: 'Workplace'
@@ -503,7 +503,7 @@ const userNav = options => {
503503
parentId: 1,
504504
id: 3,
505505
meta: {
506-
title: '监控页(外部)',
506+
title: 'menu.dashboard.workplace',
507507
target: '_blank',
508508
show: true
509509
}
@@ -513,7 +513,7 @@ const userNav = options => {
513513
parentId: 1,
514514
id: 2,
515515
meta: {
516-
title: '分析页',
516+
title: 'menu.dashboard.analysis',
517517
show: true
518518
},
519519
component: 'Analysis',
@@ -527,7 +527,7 @@ const userNav = options => {
527527
id: 10,
528528
meta: {
529529
icon: 'form',
530-
title: '表单页'
530+
title: 'menu.form'
531531
},
532532
redirect: '/form/base-form',
533533
component: 'RouteView'
@@ -537,7 +537,7 @@ const userNav = options => {
537537
parentId: 10,
538538
id: 6,
539539
meta: {
540-
title: '基础表单'
540+
title: 'menu.form.basic-form'
541541
},
542542
component: 'BasicForm'
543543
},
@@ -546,7 +546,7 @@ const userNav = options => {
546546
parentId: 10,
547547
id: 5,
548548
meta: {
549-
title: '分步表单'
549+
title: 'menu.form.step-form'
550550
},
551551
component: 'StepForm'
552552
},
@@ -555,7 +555,7 @@ const userNav = options => {
555555
parentId: 10,
556556
id: 4,
557557
meta: {
558-
title: '高级表单'
558+
title: 'menu.form.advanced-form'
559559
},
560560
component: 'AdvanceForm'
561561
},
@@ -567,7 +567,7 @@ const userNav = options => {
567567
id: 10010,
568568
meta: {
569569
icon: 'table',
570-
title: '列表页',
570+
title: 'menu.list',
571571
show: true
572572
},
573573
redirect: '/list/table-list',
@@ -579,7 +579,7 @@ const userNav = options => {
579579
id: 10011,
580580
path: '/list/table-list/:pageNo([1-9]\\d*)?',
581581
meta: {
582-
title: '查询表格',
582+
title: 'menu.list.table-list',
583583
show: true
584584
},
585585
component: 'TableList'
@@ -589,7 +589,7 @@ const userNav = options => {
589589
parentId: 10010,
590590
id: 10012,
591591
meta: {
592-
title: '标准列表',
592+
title: 'menu.list.basic-list',
593593
show: true
594594
},
595595
component: 'StandardList'
@@ -599,7 +599,7 @@ const userNav = options => {
599599
parentId: 10010,
600600
id: 10013,
601601
meta: {
602-
title: '卡片列表',
602+
title: 'menu.list.card-list',
603603
show: true
604604
},
605605
component: 'CardList'
@@ -609,7 +609,7 @@ const userNav = options => {
609609
parentId: 10010,
610610
id: 10014,
611611
meta: {
612-
title: '搜索列表',
612+
title: 'menu.list.search-list',
613613
show: true
614614
},
615615
redirect: '/list/search/article',
@@ -620,7 +620,7 @@ const userNav = options => {
620620
parentId: 10014,
621621
id: 10015,
622622
meta: {
623-
title: '搜索列表(文章)',
623+
title: 'menu.list.search-list.articles',
624624
show: true
625625
},
626626
component: 'SearchArticles'
@@ -630,7 +630,7 @@ const userNav = options => {
630630
parentId: 10014,
631631
id: 10016,
632632
meta: {
633-
title: '搜索列表(项目)',
633+
title: 'menu.list.search-list.projects',
634634
show: true
635635
},
636636
component: 'SearchProjects'
@@ -640,7 +640,7 @@ const userNav = options => {
640640
parentId: 10014,
641641
id: 10017,
642642
meta: {
643-
title: '搜索列表(应用)',
643+
title: 'menu.list.search-list.applications',
644644
show: true
645645
},
646646
component: 'SearchApplications'
@@ -652,7 +652,7 @@ const userNav = options => {
652652
parentId: 0,
653653
id: 10018,
654654
meta: {
655-
title: '详情页',
655+
title: 'menu.profile',
656656
icon: 'profile',
657657
show: true
658658
},
@@ -664,7 +664,7 @@ const userNav = options => {
664664
parentId: 10018,
665665
id: 10019,
666666
meta: {
667-
title: '基础详情页',
667+
title: 'menu.profile.basic',
668668
show: true
669669
},
670670
component: 'ProfileBasic'
@@ -674,7 +674,7 @@ const userNav = options => {
674674
parentId: 10018,
675675
id: 10020,
676676
meta: {
677-
title: '高级详情页',
677+
title: 'menu.profile.advanced',
678678
show: true
679679
},
680680
component: 'ProfileAdvanced'
@@ -686,7 +686,7 @@ const userNav = options => {
686686
parentId: 0,
687687
id: 10021,
688688
meta: {
689-
title: '结果页',
689+
title: 'menu.result',
690690
icon: 'check-circle-o',
691691
show: true
692692
},
@@ -698,7 +698,7 @@ const userNav = options => {
698698
parentId: 10021,
699699
id: 10022,
700700
meta: {
701-
title: '成功',
701+
title: 'menu.result.success',
702702
hiddenHeaderContent: true,
703703
show: true
704704
},
@@ -709,7 +709,7 @@ const userNav = options => {
709709
parentId: 10021,
710710
id: 10023,
711711
meta: {
712-
title: '失败',
712+
title: 'menu.result.fail',
713713
hiddenHeaderContent: true,
714714
show: true
715715
},
@@ -722,7 +722,7 @@ const userNav = options => {
722722
parentId: 0,
723723
id: 10024,
724724
meta: {
725-
title: '异常页',
725+
title: 'menu.exception',
726726
icon: 'warning',
727727
show: true
728728
},
@@ -734,7 +734,7 @@ const userNav = options => {
734734
parentId: 10024,
735735
id: 10025,
736736
meta: {
737-
title: '403',
737+
title: 'menu.exception.not-permission',
738738
show: true
739739
},
740740
component: 'Exception403'
@@ -744,7 +744,7 @@ const userNav = options => {
744744
parentId: 10024,
745745
id: 10026,
746746
meta: {
747-
title: '404',
747+
title: 'menu.exception.not-find',
748748
show: true
749749
},
750750
component: 'Exception404'
@@ -754,7 +754,7 @@ const userNav = options => {
754754
parentId: 10024,
755755
id: 10027,
756756
meta: {
757-
title: '500',
757+
title: 'menu.exception.server-error',
758758
show: true
759759
},
760760
component: 'Exception500'
@@ -766,7 +766,7 @@ const userNav = options => {
766766
parentId: 0,
767767
id: 10028,
768768
meta: {
769-
title: '个人页',
769+
title: 'menu.account',
770770
icon: 'user',
771771
show: true
772772
},
@@ -778,7 +778,7 @@ const userNav = options => {
778778
parentId: 10028,
779779
id: 10029,
780780
meta: {
781-
title: '个人中心',
781+
title: 'menu.account.center',
782782
show: true
783783
},
784784
component: 'AccountCenter'
@@ -789,7 +789,7 @@ const userNav = options => {
789789
parentId: 10028,
790790
id: 10030,
791791
meta: {
792-
title: '个人设置',
792+
title: 'menu.account.settings',
793793
hideHeader: true,
794794
hideChildren: true,
795795
show: true
@@ -803,7 +803,7 @@ const userNav = options => {
803803
parentId: 10030,
804804
id: 10031,
805805
meta: {
806-
title: '基本设置',
806+
title: 'account.settings.menuMap.basic',
807807
show: false
808808
},
809809
component: 'BasicSetting'
@@ -814,7 +814,7 @@ const userNav = options => {
814814
parentId: 10030,
815815
id: 10032,
816816
meta: {
817-
title: '安全设置',
817+
title: 'account.settings.menuMap.security',
818818
show: false
819819
},
820820
component: 'SecuritySettings'
@@ -825,7 +825,7 @@ const userNav = options => {
825825
parentId: 10030,
826826
id: 10033,
827827
meta: {
828-
title: '个性化设置',
828+
title: 'account.settings.menuMap.custom',
829829
show: false
830830
},
831831
component: 'CustomSettings'
@@ -836,7 +836,7 @@ const userNav = options => {
836836
parentId: 10030,
837837
id: 10034,
838838
meta: {
839-
title: '账户绑定',
839+
title: 'account.settings.menuMap.binding',
840840
show: false
841841
},
842842
component: 'BindingSettings'
@@ -847,7 +847,7 @@ const userNav = options => {
847847
parentId: 10030,
848848
id: 10034,
849849
meta: {
850-
title: '新消息通知',
850+
title: 'account.settings.menuMap.notification',
851851
show: false
852852
},
853853
component: 'NotificationSettings'

0 commit comments

Comments
 (0)