Skip to content

Commit

Permalink
refactor: 更换icon
Browse files Browse the repository at this point in the history
  • Loading branch information
jsxiaosi committed Jan 24, 2022
1 parent 10d8313 commit b4472e2
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/assets/icons/about.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/assets/icons/editor.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/assets/icons/link.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/locales/en/modules/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const route = {
nested1_2_2: 'Route1-2-2',
nested1_3: 'Route1-3',
nested2: 'Route2',
about: 'About',
},
log: {
importError: 'The file has no default export',
Expand Down
1 change: 1 addition & 0 deletions src/locales/zh-ch/modules/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const route = {
nested1_2_2: '路由1-2-2',
nested1_3: '路由1-3',
nested2: '路由2',
about: '关于',
},
log: {
importError: '文件没有默认导出',
Expand Down
18 changes: 17 additions & 1 deletion src/router/modules/otherRoute/otherRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,23 @@ const safeManagerRoutes: Array<AppRouteRecordRaw> = [
children: [
{
path: 'https://gitlab.com/SuperCuteXiaoSi/vite-vue3-template',
meta: { title: t('route.pathName.thirdParty'), icon: 'iEL-operation' },
meta: { title: t('route.pathName.thirdParty'), icon: 'link' },
},
],
},
{
path: '',
component: Layout,
redirect: '/about',
name: '',
alwaysShow: false,
meta: { title: '', icon: 'about' },
children: [
{
path: 'about',
name: 'RtAbout',
component: () => import('@/views/about/index.vue'),
meta: { title: t('route.pathName.about') },
},
],
},
Expand Down
4 changes: 4 additions & 0 deletions src/views/about/index.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<template>
<div>about</div>
</template>
<script lang="ts" setup></script>

0 comments on commit b4472e2

Please sign in to comment.