Skip to content

Commit b4472e2

Browse files
committed
refactor: 更换icon
1 parent 10d8313 commit b4472e2

File tree

7 files changed

+26
-2
lines changed

7 files changed

+26
-2
lines changed

src/assets/icons/about.svg

Lines changed: 1 addition & 0 deletions
Loading

src/assets/icons/editor.svg

Lines changed: 1 addition & 1 deletion
Loading

src/assets/icons/link.svg

Lines changed: 1 addition & 0 deletions
Loading

src/locales/en/modules/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const route = {
2626
nested1_2_2: 'Route1-2-2',
2727
nested1_3: 'Route1-3',
2828
nested2: 'Route2',
29+
about: 'About',
2930
},
3031
log: {
3132
importError: 'The file has no default export',

src/locales/zh-ch/modules/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ const route = {
2626
nested1_2_2: '路由1-2-2',
2727
nested1_3: '路由1-3',
2828
nested2: '路由2',
29+
about: '关于',
2930
},
3031
log: {
3132
importError: '文件没有默认导出',

src/router/modules/otherRoute/otherRoute.ts

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,23 @@ const safeManagerRoutes: Array<AppRouteRecordRaw> = [
206206
children: [
207207
{
208208
path: 'https://gitlab.com/SuperCuteXiaoSi/vite-vue3-template',
209-
meta: { title: t('route.pathName.thirdParty'), icon: 'iEL-operation' },
209+
meta: { title: t('route.pathName.thirdParty'), icon: 'link' },
210+
},
211+
],
212+
},
213+
{
214+
path: '',
215+
component: Layout,
216+
redirect: '/about',
217+
name: '',
218+
alwaysShow: false,
219+
meta: { title: '', icon: 'about' },
220+
children: [
221+
{
222+
path: 'about',
223+
name: 'RtAbout',
224+
component: () => import('@/views/about/index.vue'),
225+
meta: { title: t('route.pathName.about') },
210226
},
211227
],
212228
},

src/views/about/index.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<template>
2+
<div>about</div>
3+
</template>
4+
<script lang="ts" setup></script>

0 commit comments

Comments
 (0)