From c39ef38f154416e7ded8614af52e0a29da23651a Mon Sep 17 00:00:00 2001 From: Pan Date: Tue, 15 Jan 2019 14:24:36 +0800 Subject: [PATCH] update --- src/icons/svg/donate.svg | 1 + src/lang/en.js | 3 ++- src/lang/es.js | 3 ++- src/lang/zh.js | 3 ++- src/router/index.js | 11 +++++++++++ 5 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 src/icons/svg/donate.svg diff --git a/src/icons/svg/donate.svg b/src/icons/svg/donate.svg new file mode 100644 index 00000000..fe564b2b --- /dev/null +++ b/src/icons/svg/donate.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/lang/en.js b/src/lang/en.js index 2af355b1..8e7107d3 100644 --- a/src/lang/en.js +++ b/src/lang/en.js @@ -62,7 +62,8 @@ export default { theme: 'Theme', clipboardDemo: 'Clipboard', i18n: 'I18n', - externalLink: 'External Link' + externalLink: 'External Link', + donate: 'Donate' }, navbar: { logOut: 'Log Out', diff --git a/src/lang/es.js b/src/lang/es.js index 1268f083..c219f894 100755 --- a/src/lang/es.js +++ b/src/lang/es.js @@ -62,7 +62,8 @@ export default { theme: 'Tema', clipboardDemo: 'Clipboard', i18n: 'I18n', - externalLink: 'Enlace externo' + externalLink: 'Enlace externo', + donate: 'Donate' }, navbar: { logOut: 'Salir', diff --git a/src/lang/zh.js b/src/lang/zh.js index 4371713f..e3b9b5e0 100644 --- a/src/lang/zh.js +++ b/src/lang/zh.js @@ -62,7 +62,8 @@ export default { theme: '换肤', clipboardDemo: 'Clipboard', i18n: '国际化', - externalLink: '外链' + externalLink: '外链', + donate: '打赏' }, navbar: { logOut: '退出登录', diff --git a/src/router/index.js b/src/router/index.js index f42046ee..2de4863b 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -365,5 +365,16 @@ export const asyncRouterMap = [ ] }, + { + path: 'external-link', + component: Layout, + children: [ + { + path: 'https://panjiachen.gitee.io/vue-element-admin-site/zh/donate/', + meta: { title: 'donate', icon: 'donate' } + } + ] + }, + { path: '*', redirect: '/404', hidden: true } ]