From dd18f51afeef50baf8551466af512eae9c5c319e Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 2 Apr 2019 16:56:52 +0800
Subject: [PATCH 01/29] rm
---
src/components/Breadcrumb/index.vue | 7 +---
src/components/HeaderSearch/index.vue | 6 +--
src/components/LangSelect/index.vue | 38 -------------------
src/layout/components/Sidebar/SidebarItem.vue | 9 ++---
src/layout/components/TagsView/index.vue | 4 +-
src/views/login/index.vue | 4 +-
6 files changed, 8 insertions(+), 60 deletions(-)
delete mode 100644 src/components/LangSelect/index.vue
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index ff93ff45771..582449b6dc8 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -2,16 +2,14 @@
- {{
- generateTitle(item.meta.title) }}
- {{ generateTitle(item.meta.title) }}
+ {{ item.meta.title }}
+ {{ item.meta.title }}
diff --git a/src/layout/components/Sidebar/SidebarItem.vue b/src/layout/components/Sidebar/SidebarItem.vue
index 8c9c4328317..88f72908a69 100644
--- a/src/layout/components/Sidebar/SidebarItem.vue
+++ b/src/layout/components/Sidebar/SidebarItem.vue
@@ -3,14 +3,14 @@
-
+
-
+
import path from 'path'
-import { generateTitle } from '@/utils/i18n'
import { isExternal } from '@/utils/validate'
import Item from './Item'
import AppLink from './Link'
@@ -87,9 +86,7 @@ export default {
return routePath
}
return path.resolve(this.basePath, routePath)
- },
-
- generateTitle
+ }
}
}
diff --git a/src/layout/components/TagsView/index.vue b/src/layout/components/TagsView/index.vue
index bdddaba63b5..769e6fc8dad 100644
--- a/src/layout/components/TagsView/index.vue
+++ b/src/layout/components/TagsView/index.vue
@@ -12,7 +12,7 @@
@click.middle.native="closeSelectedTag(tag)"
@contextmenu.prevent.native="openMenu(tag,$event)"
>
- {{ generateTitle(tag.title) }}
+ {{ tag.title }}
@@ -36,7 +36,6 @@
-
-
diff --git a/src/views/i18n-demo/local.js b/src/views/i18n-demo/local.js
deleted file mode 100644
index 9b43e60533b..00000000000
--- a/src/views/i18n-demo/local.js
+++ /dev/null
@@ -1,63 +0,0 @@
-
-export default {
- zh: {
- i18nView: {
- title: '切换语言',
- note: '本项目国际化基于 vue-i18n',
- datePlaceholder: '请选择日期',
- selectPlaceholder: '请选择',
- tableDate: '日期',
- tableName: '姓名',
- tableAddress: '地址',
- default: '默认按钮',
- primary: '主要按钮',
- success: '成功按钮',
- info: '信息按钮',
- warning: '警告按钮',
- danger: '危险按钮',
- one: '一',
- two: '二',
- three: '三'
- }
- },
- en: {
- i18nView: {
- title: 'Switch Language',
- note: 'The internationalization of this project is based on vue-i18n',
- datePlaceholder: 'Pick a day',
- selectPlaceholder: 'Select',
- tableDate: 'tableDate',
- tableName: 'tableName',
- tableAddress: 'tableAddress',
- default: 'default:',
- primary: 'primary',
- success: 'success',
- info: 'info',
- warning: 'warning',
- danger: 'danger',
- one: 'One',
- two: 'Two',
- three: 'Three'
- }
- },
- es: {
- i18nView: {
- title: 'Switch Language',
- note: 'The internationalization of this project is based on vue-i18n',
- datePlaceholder: 'Pick a day',
- selectPlaceholder: 'Select',
- tableDate: 'tableDate',
- tableName: 'tableName',
- tableAddress: 'tableAddress',
- default: 'default:',
- primary: 'primary',
- success: 'success',
- info: 'info',
- warning: 'warning',
- danger: 'danger',
- one: 'One',
- two: 'Two',
- three: 'Three'
- }
- }
-}
From 7157c2a72891e53aaca6bc99093b4bd577aed8f7 Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 2 Apr 2019 17:35:39 +0800
Subject: [PATCH 03/29] refine
---
src/layout/components/Navbar.vue | 16 +++-------
src/views/documentation/index.vue | 19 ++++++++++--
src/views/guide/index.vue | 5 ++--
src/views/login/index.vue | 28 +++++++----------
.../permission/components/SwitchRoles.vue | 4 +--
src/views/permission/directive.vue | 2 +-
src/views/permission/role.vue | 30 +++++++++----------
7 files changed, 51 insertions(+), 53 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index b0ee54c1bd7..606d2b07a33 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -12,12 +12,10 @@
-
+
-
-
@@ -52,7 +46,6 @@ import Hamburger from '@/components/Hamburger'
import ErrorLog from '@/components/ErrorLog'
import Screenfull from '@/components/Screenfull'
import SizeSelect from '@/components/SizeSelect'
-import LangSelect from '@/components/LangSelect'
import Search from '@/components/HeaderSearch'
export default {
@@ -62,7 +55,6 @@ export default {
ErrorLog,
Screenfull,
SizeSelect,
- LangSelect,
Search
},
computed: {
diff --git a/src/views/documentation/index.vue b/src/views/documentation/index.vue
index 2fed7398f91..e1133d32770 100644
--- a/src/views/documentation/index.vue
+++ b/src/views/documentation/index.vue
@@ -1,11 +1,24 @@
+
+
+
From d025ea74c96ad66ebd9d971d9efc59c84d5078b0 Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 16 Apr 2019 11:48:31 +0800
Subject: [PATCH 15/29] refine
---
src/utils/get-page-title.js | 9 +++------
src/views/example/components/ArticleDetail.vue | 1 +
src/views/example/components/Warning.vue | 6 ++++--
3 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/utils/get-page-title.js b/src/utils/get-page-title.js
index 4b6604cdea8..cab7fd912b1 100644
--- a/src/utils/get-page-title.js
+++ b/src/utils/get-page-title.js
@@ -1,13 +1,10 @@
import defaultSettings from '@/settings'
-import i18n from '@/lang'
const title = defaultSettings.title || 'Vue Element Admin'
-export default function getPageTitle(key) {
- const hasKey = i18n.te(`route.${key}`)
- if (hasKey) {
- const pageName = i18n.t(`route.${key}`)
- return `${pageName} - ${title}`
+export default function getPageTitle(pageTitle) {
+ if (pageTitle) {
+ return `${pageTitle} - ${title}`
}
return `${title}`
}
diff --git a/src/views/example/components/ArticleDetail.vue b/src/views/example/components/ArticleDetail.vue
index b1aa8df6b74..734209b38d7 100644
--- a/src/views/example/components/ArticleDetail.vue
+++ b/src/views/example/components/ArticleDetail.vue
@@ -1,6 +1,7 @@
+
diff --git a/src/views/example/components/Warning.vue b/src/views/example/components/Warning.vue
index d24fe291802..41b9b031ad4 100644
--- a/src/views/example/components/Warning.vue
+++ b/src/views/example/components/Warning.vue
@@ -1,10 +1,12 @@
-
From 7c7f74d0302f81fcd3027724f0f1efb3818a6f8c Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 16 Apr 2019 13:15:03 +0800
Subject: [PATCH 16/29] refine
---
src/components/Breadcrumb/index.vue | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index 582449b6dc8..f6993a61dcc 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -32,7 +32,7 @@ export default {
const first = matched[0]
if (first && first.name.trim().toLocaleLowerCase() !== 'Dashboard'.toLocaleLowerCase()) {
- matched = [{ path: '/dashboard', meta: { title: 'dashboard' }}].concat(matched)
+ matched = [{ path: '/dashboard', meta: { title: 'Dashboard' }}].concat(matched)
}
this.levelList = matched.filter(item => item.meta && item.meta.title && item.meta.breadcrumb !== false)
From 7c7eef3c96bec9b5b32f3b7fdc5826720559e0d8 Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 16 Apr 2019 16:12:08 +0800
Subject: [PATCH 17/29] rm
---
src/components/Charts/Keyboard.vue | 155 -----------------------------
src/components/Charts/keyboard.vue | 155 -----------------------------
2 files changed, 310 deletions(-)
delete mode 100644 src/components/Charts/Keyboard.vue
delete mode 100644 src/components/Charts/keyboard.vue
diff --git a/src/components/Charts/Keyboard.vue b/src/components/Charts/Keyboard.vue
deleted file mode 100644
index 0b258f3648c..00000000000
--- a/src/components/Charts/Keyboard.vue
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
diff --git a/src/components/Charts/keyboard.vue b/src/components/Charts/keyboard.vue
deleted file mode 100644
index 0b258f3648c..00000000000
--- a/src/components/Charts/keyboard.vue
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
-
From 0c2113049e56215cbb800e89e5a51c912c109971 Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 16 Apr 2019 16:12:26 +0800
Subject: [PATCH 18/29] add
---
src/components/Charts/Keyboard.vue | 155 +++++++++++++++++++++++++++++
1 file changed, 155 insertions(+)
create mode 100644 src/components/Charts/Keyboard.vue
diff --git a/src/components/Charts/Keyboard.vue b/src/components/Charts/Keyboard.vue
new file mode 100644
index 00000000000..0b258f3648c
--- /dev/null
+++ b/src/components/Charts/Keyboard.vue
@@ -0,0 +1,155 @@
+
+
+
+
+
From c47b3e5c3ead7d601404c647e0885c74dae3c040 Mon Sep 17 00:00:00 2001
From: Pan
Date: Thu, 18 Apr 2019 18:16:13 +0800
Subject: [PATCH 19/29] perf: optimize some small details
---
src/api/user.js | 1 -
src/layout/components/Navbar.vue | 4 +++-
src/store/getters.js | 1 -
src/store/modules/permission.js | 2 +-
src/utils/validate.js | 1 +
src/views/error-page/404.vue | 23 +++++++----------------
src/views/login/index.vue | 2 +-
vue.config.js | 2 +-
8 files changed, 14 insertions(+), 22 deletions(-)
diff --git a/src/api/user.js b/src/api/user.js
index a8052005db7..de69f70733b 100644
--- a/src/api/user.js
+++ b/src/api/user.js
@@ -22,4 +22,3 @@ export function logout() {
method: 'post'
})
}
-
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index d21648f7a50..122a5db765c 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -30,6 +30,9 @@
Github
+
+ Docs
+
Log Out
@@ -60,7 +63,6 @@ export default {
computed: {
...mapGetters([
'sidebar',
- 'name',
'avatar',
'device'
])
diff --git a/src/store/getters.js b/src/store/getters.js
index 71f9da26521..8fcf5a59d1d 100644
--- a/src/store/getters.js
+++ b/src/store/getters.js
@@ -10,7 +10,6 @@ const getters = {
introduction: state => state.user.introduction,
roles: state => state.user.roles,
permission_routes: state => state.permission.routes,
- addRoutes: state => state.permission.addRoutes,
errorLogs: state => state.errorLog.logs
}
export default getters
diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index bd35252c5ff..aeb5ee53979 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -51,7 +51,7 @@ const actions = {
return new Promise(resolve => {
let accessedRoutes
if (roles.includes('admin')) {
- accessedRoutes = asyncRoutes
+ accessedRoutes = asyncRoutes || []
} else {
accessedRoutes = filterAsyncRoutes(asyncRoutes, roles)
}
diff --git a/src/utils/validate.js b/src/utils/validate.js
index e04f292e8b9..e81672bb9fa 100644
--- a/src/utils/validate.js
+++ b/src/utils/validate.js
@@ -1,6 +1,7 @@
/**
* Created by jiachenpan on 16/11/18.
*/
+
/**
* @param {string} path
* @returns {Boolean}
diff --git a/src/views/error-page/404.vue b/src/views/error-page/404.vue
index 66cb3eaeb38..1791f55a34e 100644
--- a/src/views/error-page/404.vue
+++ b/src/views/error-page/404.vue
@@ -8,22 +8,13 @@
-
- OOPS!
+
OOPS!
+
-
-
- {{ message }}
-
-
- 请检查您输入的网址是否正确,请点击以下按钮返回主页或者发送错误报告
-
-
- 返回首页
-
+
{{ message }}
+
Please check that the URL you entered is correct, or click the button below to return to the homepage.
+
Back to home
@@ -35,7 +26,7 @@ export default {
name: 'Page404',
computed: {
message() {
- return '网管说这个页面你不能进......'
+ return 'The webmaster said that you can not enter this page...'
}
}
}
diff --git a/src/views/login/index.vue b/src/views/login/index.vue
index 0512d22551b..2a1ab741252 100644
--- a/src/views/login/index.vue
+++ b/src/views/login/index.vue
@@ -30,7 +30,7 @@
ref="password"
v-model="loginForm.password"
:type="passwordType"
- :placeholder="Password"
+ placeholder="Password"
name="password"
auto-complete="on"
@keyup.native="checkCapslock"
diff --git a/vue.config.js b/vue.config.js
index bae56d7821a..7fa009922bf 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -86,7 +86,7 @@ module.exports = {
.end()
config
- // https://webpack.js.org/configuration/devtool/#development
+ // https://webpack.js.org/configuration/devtool/#development
.when(process.env.NODE_ENV === 'development',
config => config.devtool('cheap-source-map')
)
From 909101729e216c86521a5f8cd3651b1174f16f5d Mon Sep 17 00:00:00 2001
From: Pan
Date: Fri, 19 Apr 2019 18:14:32 +0800
Subject: [PATCH 20/29] update
---
src/icons/index.js | 2 +-
src/router/index.js | 5 +++--
src/store/modules/user.js | 2 +-
src/utils/index.js | 2 +-
src/utils/open-window.js | 2 +-
src/utils/request.js | 9 +++++----
src/utils/validate.js | 2 +-
7 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/src/icons/index.js b/src/icons/index.js
index c1c2e792359..2c6b309c96c 100644
--- a/src/icons/index.js
+++ b/src/icons/index.js
@@ -1,5 +1,5 @@
import Vue from 'vue'
-import SvgIcon from '@/components/SvgIcon'// svg组件
+import SvgIcon from '@/components/SvgIcon'// svg component
// register globally
Vue.component('svg-icon', SvgIcon)
diff --git a/src/router/index.js b/src/router/index.js
index 88c8324b304..4d86cdf3d64 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -71,9 +71,9 @@ export const constantRoutes = [
hidden: true
},
{
- path: '',
+ path: '/',
component: Layout,
- redirect: 'dashboard',
+ redirect: '/dashboard',
children: [
{
path: 'dashboard',
@@ -369,6 +369,7 @@ export const asyncRoutes = [
]
},
+ // 404 page must be placed at the end !!!
{ path: '*', redirect: '/404', hidden: true }
]
diff --git a/src/store/modules/user.js b/src/store/modules/user.js
index f27615b0b6e..d2b2e67a3f3 100644
--- a/src/store/modules/user.js
+++ b/src/store/modules/user.js
@@ -97,7 +97,7 @@ const actions = {
})
},
- // Dynamically modify permissions
+ // dynamically modify permissions
changeRoles({ commit, dispatch }, role) {
return new Promise(async resolve => {
const token = role + '-token'
diff --git a/src/utils/index.js b/src/utils/index.js
index c0ee50266bc..ffb552609b0 100644
--- a/src/utils/index.js
+++ b/src/utils/index.js
@@ -1,5 +1,5 @@
/**
- * Created by jiachenpan on 16/11/18.
+ * Created by PanJiaChen on 16/11/18.
*/
/**
diff --git a/src/utils/open-window.js b/src/utils/open-window.js
index 657bd190de0..1a655d777ff 100644
--- a/src/utils/open-window.js
+++ b/src/utils/open-window.js
@@ -1,5 +1,5 @@
/**
- *Created by jiachenpan on 16/11/29.
+ *Created by PanJiaChen on 16/11/29.
* @param {Sting} url
* @param {Sting} title
* @param {Number} w
diff --git a/src/utils/request.js b/src/utils/request.js
index d3c25c00fef..bc346a8c1bb 100644
--- a/src/utils/request.js
+++ b/src/utils/request.js
@@ -16,8 +16,9 @@ service.interceptors.request.use(
// do something before request is sent
if (store.getters.token) {
- // let each request carry token --['X-Token'] as a custom key.
- // please modify it according to the actual situation.
+ // let each request carry token
+ // ['X-Token'] is a custom headers key
+ // please modify it according to the actual situation
config.headers['X-Token'] = getToken()
}
return config
@@ -32,14 +33,14 @@ service.interceptors.request.use(
// response interceptor
service.interceptors.response.use(
/**
- * If you want to get information such as headers or status
+ * If you want to get http information such as headers or status
* Please return response => response
*/
/**
* Determine the request status by custom code
* Here is just an example
- * You can also judge the status by HTTP Status Code.
+ * You can also judge the status by HTTP Status Code
*/
response => {
const res = response.data
diff --git a/src/utils/validate.js b/src/utils/validate.js
index e81672bb9fa..6b3ac41809d 100644
--- a/src/utils/validate.js
+++ b/src/utils/validate.js
@@ -1,5 +1,5 @@
/**
- * Created by jiachenpan on 16/11/18.
+ * Created by PanJiaChen on 16/11/18.
*/
/**
From 08aceeaf982535265be64ca4e7a5ef0bb88980c2 Mon Sep 17 00:00:00 2001
From: Pan
Date: Fri, 19 Apr 2019 18:16:58 +0800
Subject: [PATCH 21/29] rm
---
src/layout/components/Navbar.vue | 3 ---
1 file changed, 3 deletions(-)
diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue
index 82d71d45767..122a5db765c 100644
--- a/src/layout/components/Navbar.vue
+++ b/src/layout/components/Navbar.vue
@@ -33,9 +33,6 @@
Docs
-
- Docs
-
Log Out
From 6520d1bd0161042a4e5440cdd215e96563f10a65 Mon Sep 17 00:00:00 2001
From: Pan
Date: Thu, 25 Apr 2019 17:51:54 +0800
Subject: [PATCH 22/29] tweak
---
src/router/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/router/index.js b/src/router/index.js
index 9cae3ea76ec..e0c20736691 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -118,7 +118,7 @@ export const constantRoutes = [
path: 'index',
component: () => import('@/views/profile/index'),
name: 'Profile',
- meta: { title: 'profile', icon: 'user', noCache: true }
+ meta: { title: 'Profile', icon: 'user', noCache: true }
}
]
}
From 5c45b216689df7209fa3e99e0b9074f2197113e5 Mon Sep 17 00:00:00 2001
From: Pan
Date: Sun, 28 Apr 2019 17:53:07 +0800
Subject: [PATCH 23/29] fix[Mock]: add error handling
---
mock/mock-server.js | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/mock/mock-server.js b/mock/mock-server.js
index ccce04d2812..4c4cb2af83d 100644
--- a/mock/mock-server.js
+++ b/mock/mock-server.js
@@ -48,17 +48,21 @@ module.exports = app => {
ignoreInitial: true
}).on('all', (event, path) => {
if (event === 'change' || event === 'add') {
- // remove mock routes stack
- app._router.stack.splice(mockStartIndex, mockRoutesLength)
+ try {
+ // remove mock routes stack
+ app._router.stack.splice(mockStartIndex, mockRoutesLength)
- // clear routes cache
- unregisterRoutes()
+ // clear routes cache
+ unregisterRoutes()
- const mockRoutes = registerRoutes(app)
- mockRoutesLength = mockRoutes.mockRoutesLength
- mockStartIndex = mockRoutes.mockStartIndex
+ const mockRoutes = registerRoutes(app)
+ mockRoutesLength = mockRoutes.mockRoutesLength
+ mockStartIndex = mockRoutes.mockStartIndex
- console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
+ console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
+ } catch (error) {
+ console.log(chalk.redBright(error))
+ }
}
})
}
From 6e0f61b2c4acb323ba8f570887378b597e617d94 Mon Sep 17 00:00:00 2001
From: Pan
Date: Tue, 30 Apr 2019 10:25:37 +0800
Subject: [PATCH 24/29] refine
---
vue.config.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vue.config.js b/vue.config.js
index 7fa009922bf..bbb2a1d0320 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -86,7 +86,7 @@ module.exports = {
.end()
config
- // https://webpack.js.org/configuration/devtool/#development
+ // https://webpack.js.org/configuration/devtool/#development
.when(process.env.NODE_ENV === 'development',
config => config.devtool('cheap-source-map')
)
From 48f0f882503136b722000d0814e605594da6226d Mon Sep 17 00:00:00 2001
From: Pan
Date: Fri, 3 May 2019 17:34:08 +0800
Subject: [PATCH 25/29] refine
---
src/views/example/components/ArticleDetail.vue | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/views/example/components/ArticleDetail.vue b/src/views/example/components/ArticleDetail.vue
index 40d78489d42..b689ae01dfc 100644
--- a/src/views/example/components/ArticleDetail.vue
+++ b/src/views/example/components/ArticleDetail.vue
@@ -153,9 +153,6 @@ export default {
contentShortLength() {
return this.postForm.content_short.length
},
- lang() {
- return this.$store.getters.language
- },
displayTime: {
// set and get is useful when the data
// returned by the back end api is different from the front end
@@ -197,7 +194,7 @@ export default {
})
},
setTagsViewTitle() {
- const title = this.lang === 'zh' ? '编辑文章' : 'Edit Article'
+ const title = 'Edit Article'
const route = Object.assign({}, this.tempRoute, { title: `${title}-${this.postForm.id}` })
this.$store.dispatch('tagsView/updateVisitedView', route)
},
From 60340f42fdd690f5cdea4a70f5cde662f16043f8 Mon Sep 17 00:00:00 2001
From: Pan
Date: Sun, 5 May 2019 16:21:42 +0800
Subject: [PATCH 26/29] docs
---
README.ja.md | 6 ++++--
README.md | 4 +++-
README.zh-CN.md | 4 +++-
3 files changed, 10 insertions(+), 4 deletions(-)
diff --git a/README.ja.md b/README.ja.md
index e601291a9fc..d4ffcace5cb 100644
--- a/README.ja.md
+++ b/README.ja.md
@@ -26,7 +26,7 @@
-日本語 | [English](./README.md) | [简体中文](./README.zh-CN.md)
+日本語 | [English](./README.md) | [简体中文](./README.zh-CN.md)
## 概要
@@ -46,6 +46,8 @@
- デスクトップバージョン: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
- Typescriptバージョン: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (鸣谢: [@Armour](https://github.com/Armour))
+**After the `v4.1.0+` version, the default master branch will not support i18n. Please use [i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), it will keep up with the master update**
+
**現在のバージョン `v4.0+` は `vue-cli` で構築,バグ報告は[issue](https://github.com/PanJiaChen/vue-element-admin/issues/new)のissueでお願いします。旧バージョン[tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0)もあります。`vue-cli`に依存しないです。**
**低いバージョンのブラウザはサーポートしないです(例えば ie),必要があれば polyfill を追加してください。 [詳細はこちら](https://github.com/PanJiaChen/vue-element-admin/wiki#babel-polyfill)**
@@ -207,4 +209,4 @@ Modern browsers and Internet Explorer 10+.
[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE)
-Copyright (c) 2017-present PanJiaChen
\ No newline at end of file
+Copyright (c) 2017-present PanJiaChen
diff --git a/README.md b/README.md
index 0388b0d0167..c60e0006aa9 100644
--- a/README.md
+++ b/README.md
@@ -26,7 +26,7 @@
-English | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md)
+English | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md)
## Introduction
@@ -50,6 +50,8 @@ It is a magical vue admin based on the newest development stack of vue, built-in
- Desktop: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
- Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
+**After the `v4.1.0+` version, the default master branch will not support i18n. Please use [i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), it will keep up with the master update**
+
**The current version is `v4.0+` build on `vue-cli`. If you find a problem, please put [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0), it does not rely on `vue-cli'**
**This project does not support low version browsers (e.g. IE). Please add polyfill by yourself.**
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 0af0838d73b..5bb313ce88b 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -50,10 +50,12 @@
- 桌面端: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
- Typescript 版: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (鸣谢: [@Armour](https://github.com/Armour))
-**目前版本为 `v4.0+` 基于 `vue-cli` 进行构建,若发现问题,欢迎提[issue](https://github.com/PanJiaChen/vue-element-admin/issues/new)。若你想使用旧版本,可以切换分支到[tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0),它不依赖 `vue-cli`**
+**`v4.1.0+`版本之后默认 master 分支将不支持国际化,有需要的请使用[i18n](https://github.com/PanJiaChen/vue-element-admin/tree/i18n)分支,它会和 master 保持同步更新**
**该项目不支持低版本浏览器(如 ie),有需求请自行添加 polyfill [详情](https://github.com/PanJiaChen/vue-element-admin/wiki#babel-polyfill)**
+**目前版本为 `v4.0+` 基于 `vue-cli` 进行构建,若发现问题,欢迎提[issue](https://github.com/PanJiaChen/vue-element-admin/issues/new)。若你想使用旧版本,可以切换分支到[tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0),它不依赖 `vue-cli`**
+
群主 **[圈子](https://jianshiapp.com/circles/1209)** 群主会经常分享一些技术相关的东西,或者加入 [qq 群](https://github.com/PanJiaChen/vue-element-admin/issues/602) 或者关注 [微博](https://weibo.com/u/3423485724?is_all=1)
## 前序准备
From 363d0b96955f296b379e4a975ea65fc1ab3f124b Mon Sep 17 00:00:00 2001
From: Pan
Date: Sun, 5 May 2019 16:24:17 +0800
Subject: [PATCH 27/29] doc
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index c60e0006aa9..e6ade124244 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ It is a magical vue admin based on the newest development stack of vue, built-in
**After the `v4.1.0+` version, the default master branch will not support i18n. Please use [i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), it will keep up with the master update**
-**The current version is `v4.0+` build on `vue-cli`. If you find a problem, please put [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0), it does not rely on `vue-cli'**
+**The current version is `v4.0+` build on `vue-cli`. If you find a problem, please put [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). If you want to use the old version , you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0), it does not rely on `vue-cli`**
**This project does not support low version browsers (e.g. IE). Please add polyfill by yourself.**
From da9e486c876cf87af36d209e7370283073610d20 Mon Sep 17 00:00:00 2001
From: Pan
Date: Sun, 5 May 2019 16:26:03 +0800
Subject: [PATCH 28/29] rm
---
src/lang/ja.js | 175 -------------------------------------------------
1 file changed, 175 deletions(-)
delete mode 100644 src/lang/ja.js
diff --git a/src/lang/ja.js b/src/lang/ja.js
deleted file mode 100644
index 7dccd1246b1..00000000000
--- a/src/lang/ja.js
+++ /dev/null
@@ -1,175 +0,0 @@
-export default {
- route: {
- dashboard: 'トップ',
- documentation: 'ドキュメント',
- guide: 'ガイド',
- permission: '権限',
- rolePermission: '権限ロール',
- pagePermission: 'ページ権限',
- directivePermission: 'ディレクティブ権限',
- icons: 'アイコン',
- components: 'コンポーネント',
- tinymce: 'TinyMCE',
- markdown: 'Markdown',
- jsonEditor: 'JSON Editor',
- dndList: 'Drag-And-Drop',
- splitPane: 'パネル',
- avatarUpload: 'アバターアップロード',
- dropzone: 'Dropzone',
- sticky: 'Sticky',
- countTo: 'Count To',
- componentMixin: 'コンポーネントMixin',
- backToTop: 'BackToTop',
- dragDialog: 'Drag Dialog',
- dragSelect: 'Drag Select',
- dragKanban: 'Drag 看板',
- charts: 'チャート',
- keyboardChart: 'Keyboardチャート',
- lineChart: 'Lineチャート',
- mixChart: 'Mixチャート',
- example: 'Example',
- nested: 'Nested Routes',
- menu1: 'メニュー1',
- 'menu1-1': 'メニュー 1-1',
- 'menu1-2': 'メニュー 1-2',
- 'menu1-2-1': 'メニュー 1-2-1',
- 'menu1-2-2': 'メニュー 1-2-2',
- 'menu1-3': 'メニュー 1-3',
- menu2: 'メニュー 2',
- Table: 'Table',
- dynamicTable: '可変 Table',
- dragTable: 'Drag Table',
- inlineEditTable: 'Inline Edit Table',
- complexTable: 'Complex Table',
- tab: 'Tab',
- form: 'フォーム',
- createArticle: '投稿作成',
- editArticle: '投稿編集',
- articleList: '投稿リスト',
- errorPages: 'エラーページ',
- page401: '401',
- page404: '404',
- errorLog: 'エラーログ',
- excel: 'Excel',
- exportExcel: '一括エクスポート',
- selectExcel: '複数選択エクスポート',
- mergeHeader: 'ヘッダーマージ',
- uploadExcel: 'アップロード',
- zip: 'Zip',
- pdf: 'PDF',
- exportZip: 'Export Zip',
- theme: 'テーマ変更',
- clipboardDemo: 'Clipboard',
- i18n: '多言語',
- externalLink: '外部リンク',
- profile: 'プロフィール'
- },
- navbar: {
- dashboard: 'トップ',
- github: 'GitHub',
- logOut: 'ログアウト',
- profile: 'プロフィール',
- theme: 'テーマ変更',
- size: '画面サイズ'
- },
- login: {
- title: 'ユーザログイン',
- logIn: 'ログイン',
- username: 'ユーザ名',
- password: 'パスワード',
- any: 'password',
- thirdparty: '外部IDでログイン',
- thirdpartyTips: 'ローカル環境ではログインできません。実装が必要です。'
- },
- documentation: {
- documentation: 'ドキュメント',
- github: 'Github Link'
- },
- permission: {
- addRole: 'ロール追加',
- editPermission: 'ロール変更',
- roles: 'ロール',
- switchRoles: 'ロール切替',
- tips: 'v-permissionは使えない時があります。例えば: Element-UI の el-tab、 el-table-column 及び他の dom。v-ifを使う必要があります。',
- delete: '削除',
- confirm: '確認',
- cancel: 'キャンセル'
- },
- guide: {
- description: 'ガイドは各機能の説明です。',
- button: 'ガイドを見る'
- },
- components: {
- documentation: 'ドキュメント',
- tinymceTips: 'tinymceは管理画面に重要な機能ですが、その同時に落とし穴がありあす。tinymceを使う道のりが大変でした。Tinymceを使う時に各自のプロジェクト状況で判断が必要です。ドキュメントはこちら',
- dropzoneTips: 'Third partyのパッケージを使わず、独自の実装しています。詳細は @/components/Dropzone',
- stickyTips: 'ページの指定位置へスクロールした場合、表示されます。',
- backToTopTips1: 'トップへスクロールが表示されます。',
- backToTopTips2: 'ボタンのスタイルはカスタマイズできます。例えば、show/hide、height、position。 またはElementのel-tooltipを使って、ツールチップを実装できます。',
- imageUploadTips: 'mockjsは使えないため、カスタマイズしています。公式の最新バージョンを使ってください。'
- },
- table: {
- dynamicTips1: '先頭は固定、最後に追加',
- dynamicTips2: '戦後に追加せず、指定列に追加',
- dragTips1: 'デフォルト順番',
- dragTips2: 'Drag後の順番',
- title: 'タイトル',
- importance: '重要',
- type: 'タイプ',
- remark: '評価',
- search: '検索',
- add: '追加',
- export: 'エクスポート',
- reviewer: 'レビュアー',
- id: '番号',
- date: '日時',
- author: '作成者',
- readings: '閲覧数',
- status: 'ステータス',
- actions: '操作',
- edit: '編集',
- publish: '公開',
- draft: '下書き',
- delete: 'キャンセル',
- cancel: 'キャンセル',
- confirm: '確認'
- },
- example: {
- warning: '新規作成と編集画面は keep-alive を使えないです。keep-alive の include はrouteのキャッシュは使えないです。そのため、component name を使ってキャッシュさせるようにします。このようなキャッシュ機能を作りたい場合,localStorageを使う手があります。もしくは keep-alive の includeを使って、全ページキャッシュする方法はあります。'
- },
- errorLog: {
- tips: '右上のbugアイコンをクリックしてください。',
- description: '管理画面はspaを使う場合が多い、ユーザ体現向上はできますが、想定外エラーが発生する場合があります。Vueはそのエラーハンドリング機能を提供し、エラーレポートができます。',
- documentation: 'ドキュメント'
- },
- excel: {
- export: 'エクスポート',
- selectedExport: 'エクスポート対象を選択してください。',
- placeholder: 'ファイル名を入力してください。'
- },
- zip: {
- export: 'エクスポート',
- placeholder: 'ファイル名を入力してください。'
- },
- pdf: {
- tips: 'window.print() を使ってPDFダウンロードしています。'
- },
- theme: {
- change: 'テーマ切替',
- documentation: 'ドキュメント',
- tips: 'Tips: テーマの切り替え方法はnavbarのtheme-pickと異なります、使い方はドキュメントを確認してください。'
- },
- tagsView: {
- refresh: '更新',
- close: '閉じる',
- closeOthers: 'その他閉じる',
- closeAll: 'すべて閉じる'
- },
- settings: {
- title: 'システムテーマ',
- theme: 'テーマ色',
- tagsView: 'Tags-View 開く',
- fixedHeader: 'Fixed Header',
- sidebarLogo: 'Sidebar Logo'
- }
-}
From c28979b4785ea6fb6293056779d006bbd3ac30a1 Mon Sep 17 00:00:00 2001
From: Pan
Date: Sun, 5 May 2019 16:45:24 +0800
Subject: [PATCH 29/29] update
---
mock/role/routes.js | 110 ++++++++++++++++++++++----------------------
1 file changed, 55 insertions(+), 55 deletions(-)
diff --git a/mock/role/routes.js b/mock/role/routes.js
index c4654566892..d718919c151 100644
--- a/mock/role/routes.js
+++ b/mock/role/routes.js
@@ -41,7 +41,7 @@ export const constantRoutes = [
path: 'dashboard',
component: 'views/dashboard/index',
name: 'Dashboard',
- meta: { title: 'dashboard', icon: 'dashboard', affix: true }
+ meta: { title: 'Dashboard', icon: 'dashboard', affix: true }
}
]
},
@@ -53,7 +53,7 @@ export const constantRoutes = [
path: 'index',
component: 'views/documentation/index',
name: 'Documentation',
- meta: { title: 'documentation', icon: 'documentation', affix: true }
+ meta: { title: 'Documentation', icon: 'documentation', affix: true }
}
]
},
@@ -66,7 +66,7 @@ export const constantRoutes = [
path: 'index',
component: 'views/guide/index',
name: 'Guide',
- meta: { title: 'guide', icon: 'guide', noCache: true }
+ meta: { title: 'Guide', icon: 'guide', noCache: true }
}
]
}
@@ -79,7 +79,7 @@ export const asyncRoutes = [
redirect: '/permission/index',
alwaysShow: true,
meta: {
- title: 'permission',
+ title: 'Permission',
icon: 'lock',
roles: ['admin', 'editor']
},
@@ -89,7 +89,7 @@ export const asyncRoutes = [
component: 'views/permission/page',
name: 'PagePermission',
meta: {
- title: 'pagePermission',
+ title: 'Page Permission',
roles: ['admin']
}
},
@@ -98,7 +98,7 @@ export const asyncRoutes = [
component: 'views/permission/directive',
name: 'DirectivePermission',
meta: {
- title: 'directivePermission'
+ title: 'Directive Permission'
}
},
{
@@ -106,7 +106,7 @@ export const asyncRoutes = [
component: 'views/permission/role',
name: 'RolePermission',
meta: {
- title: 'rolePermission',
+ title: 'Role Permission',
roles: ['admin']
}
}
@@ -121,7 +121,7 @@ export const asyncRoutes = [
path: 'index',
component: 'views/icons/index',
name: 'Icons',
- meta: { title: 'icons', icon: 'icon', noCache: true }
+ meta: { title: 'Icons', icon: 'icon', noCache: true }
}
]
},
@@ -132,7 +132,7 @@ export const asyncRoutes = [
redirect: 'noRedirect',
name: 'ComponentDemo',
meta: {
- title: 'components',
+ title: 'Components',
icon: 'component'
},
children: [
@@ -140,49 +140,49 @@ export const asyncRoutes = [
path: 'tinymce',
component: 'views/components-demo/tinymce',
name: 'TinymceDemo',
- meta: { title: 'tinymce' }
+ meta: { title: 'Tinymce' }
},
{
path: 'markdown',
component: 'views/components-demo/markdown',
name: 'MarkdownDemo',
- meta: { title: 'markdown' }
+ meta: { title: 'Markdown' }
},
{
path: 'json-editor',
component: 'views/components-demo/json-editor',
name: 'JsonEditorDemo',
- meta: { title: 'jsonEditor' }
+ meta: { title: 'Json Editor' }
},
{
path: 'split-pane',
component: 'views/components-demo/split-pane',
name: 'SplitpaneDemo',
- meta: { title: 'splitPane' }
+ meta: { title: 'SplitPane' }
},
{
path: 'avatar-upload',
component: 'views/components-demo/avatar-upload',
name: 'AvatarUploadDemo',
- meta: { title: 'avatarUpload' }
+ meta: { title: 'Avatar Upload' }
},
{
path: 'dropzone',
component: 'views/components-demo/dropzone',
name: 'DropzoneDemo',
- meta: { title: 'dropzone' }
+ meta: { title: 'Dropzone' }
},
{
path: 'sticky',
component: 'views/components-demo/sticky',
name: 'StickyDemo',
- meta: { title: 'sticky' }
+ meta: { title: 'Sticky' }
},
{
path: 'count-to',
component: 'views/components-demo/count-to',
name: 'CountToDemo',
- meta: { title: 'countTo' }
+ meta: { title: 'Count To' }
},
{
path: 'mixin',
@@ -194,31 +194,31 @@ export const asyncRoutes = [
path: 'back-to-top',
component: 'views/components-demo/back-to-top',
name: 'BackToTopDemo',
- meta: { title: 'backToTop' }
+ meta: { title: 'Back To Top' }
},
{
path: 'drag-dialog',
component: 'views/components-demo/drag-dialog',
name: 'DragDialogDemo',
- meta: { title: 'dragDialog' }
+ meta: { title: 'Drag Dialog' }
},
{
path: 'drag-select',
component: 'views/components-demo/drag-select',
name: 'DragSelectDemo',
- meta: { title: 'dragSelect' }
+ meta: { title: 'Drag Select' }
},
{
path: 'dnd-list',
component: 'views/components-demo/dnd-list',
name: 'DndListDemo',
- meta: { title: 'dndList' }
+ meta: { title: 'Dnd List' }
},
{
path: 'drag-kanban',
component: 'views/components-demo/drag-kanban',
name: 'DragKanbanDemo',
- meta: { title: 'dragKanban' }
+ meta: { title: 'Drag Kanban' }
}
]
},
@@ -228,7 +228,7 @@ export const asyncRoutes = [
redirect: 'noRedirect',
name: 'Charts',
meta: {
- title: 'charts',
+ title: 'Charts',
icon: 'chart'
},
children: [
@@ -236,19 +236,19 @@ export const asyncRoutes = [
path: 'keyboard',
component: 'views/charts/keyboard',
name: 'KeyboardChart',
- meta: { title: 'keyboardChart', noCache: true }
+ meta: { title: 'Keyboard Chart', noCache: true }
},
{
path: 'line',
component: 'views/charts/line',
name: 'LineChart',
- meta: { title: 'lineChart', noCache: true }
+ meta: { title: 'Line Chart', noCache: true }
},
{
path: 'mixchart',
component: 'views/charts/mixChart',
name: 'MixChart',
- meta: { title: 'mixChart', noCache: true }
+ meta: { title: 'Mix Chart', noCache: true }
}
]
},
@@ -258,7 +258,7 @@ export const asyncRoutes = [
redirect: '/nested/menu1/menu1-1',
name: 'Nested',
meta: {
- title: 'nested',
+ title: 'Nested',
icon: 'nested'
},
children: [
@@ -266,33 +266,33 @@ export const asyncRoutes = [
path: 'menu1',
component: 'views/nested/menu1/index',
name: 'Menu1',
- meta: { title: 'menu1' },
+ meta: { title: 'Menu1' },
redirect: '/nested/menu1/menu1-1',
children: [
{
path: 'menu1-1',
component: 'views/nested/menu1/menu1-1',
name: 'Menu1-1',
- meta: { title: 'menu1-1' }
+ meta: { title: 'Menu1-1' }
},
{
path: 'menu1-2',
component: 'views/nested/menu1/menu1-2',
name: 'Menu1-2',
redirect: '/nested/menu1/menu1-2/menu1-2-1',
- meta: { title: 'menu1-2' },
+ meta: { title: 'Menu1-2' },
children: [
{
path: 'menu1-2-1',
component: 'views/nested/menu1/menu1-2/menu1-2-1',
name: 'Menu1-2-1',
- meta: { title: 'menu1-2-1' }
+ meta: { title: 'Menu1-2-1' }
},
{
path: 'menu1-2-2',
component: 'views/nested/menu1/menu1-2/menu1-2-2',
name: 'Menu1-2-2',
- meta: { title: 'menu1-2-2' }
+ meta: { title: 'Menu1-2-2' }
}
]
},
@@ -300,7 +300,7 @@ export const asyncRoutes = [
path: 'menu1-3',
component: 'views/nested/menu1/menu1-3',
name: 'Menu1-3',
- meta: { title: 'menu1-3' }
+ meta: { title: 'Menu1-3' }
}
]
},
@@ -308,7 +308,7 @@ export const asyncRoutes = [
path: 'menu2',
name: 'Menu2',
component: 'views/nested/menu2/index',
- meta: { title: 'menu2' }
+ meta: { title: 'Menu2' }
}
]
},
@@ -319,7 +319,7 @@ export const asyncRoutes = [
redirect: '/example/list',
name: 'Example',
meta: {
- title: 'example',
+ title: 'Example',
icon: 'example'
},
children: [
@@ -327,20 +327,20 @@ export const asyncRoutes = [
path: 'create',
component: 'views/example/create',
name: 'CreateArticle',
- meta: { title: 'createArticle', icon: 'edit' }
+ meta: { title: 'Create Article', icon: 'edit' }
},
{
path: 'edit/:id(\\d+)',
component: 'views/example/edit',
name: 'EditArticle',
- meta: { title: 'editArticle', noCache: true },
+ meta: { title: 'Edit Article', noCache: true },
hidden: true
},
{
path: 'list',
component: 'views/example/list',
name: 'ArticleList',
- meta: { title: 'articleList', icon: 'list' }
+ meta: { title: 'Article List', icon: 'list' }
}
]
},
@@ -353,7 +353,7 @@ export const asyncRoutes = [
path: 'index',
component: 'views/tab/index',
name: 'Tab',
- meta: { title: 'tab', icon: 'tab' }
+ meta: { title: 'Tab', icon: 'tab' }
}
]
},
@@ -364,7 +364,7 @@ export const asyncRoutes = [
redirect: 'noRedirect',
name: 'ErrorPages',
meta: {
- title: 'errorPages',
+ title: 'Error Pages',
icon: '404'
},
children: [
@@ -372,13 +372,13 @@ export const asyncRoutes = [
path: '401',
component: 'views/error-page/401',
name: 'Page401',
- meta: { title: 'page401', noCache: true }
+ meta: { title: 'Page 401', noCache: true }
},
{
path: '404',
component: 'views/error-page/404',
name: 'Page404',
- meta: { title: 'page404', noCache: true }
+ meta: { title: 'Page 404', noCache: true }
}
]
},
@@ -392,7 +392,7 @@ export const asyncRoutes = [
path: 'log',
component: 'views/error-log/index',
name: 'ErrorLog',
- meta: { title: 'errorLog', icon: 'bug' }
+ meta: { title: 'Error Log', icon: 'bug' }
}
]
},
@@ -403,7 +403,7 @@ export const asyncRoutes = [
redirect: '/excel/export-excel',
name: 'Excel',
meta: {
- title: 'excel',
+ title: 'Excel',
icon: 'excel'
},
children: [
@@ -411,25 +411,25 @@ export const asyncRoutes = [
path: 'export-excel',
component: 'views/excel/export-excel',
name: 'ExportExcel',
- meta: { title: 'exportExcel' }
+ meta: { title: 'Export Excel' }
},
{
path: 'export-selected-excel',
component: 'views/excel/select-excel',
name: 'SelectExcel',
- meta: { title: 'selectExcel' }
+ meta: { title: 'Select Excel' }
},
{
path: 'export-merge-header',
component: 'views/excel/merge-header',
name: 'MergeHeader',
- meta: { title: 'mergeHeader' }
+ meta: { title: 'Merge Header' }
},
{
path: 'upload-excel',
component: 'views/excel/upload-excel',
name: 'UploadExcel',
- meta: { title: 'uploadExcel' }
+ meta: { title: 'Upload Excel' }
}
]
},
@@ -439,13 +439,13 @@ export const asyncRoutes = [
component: 'layout/Layout',
redirect: '/zip/download',
alwaysShow: true,
- meta: { title: 'zip', icon: 'zip' },
+ meta: { title: 'Zip', icon: 'zip' },
children: [
{
path: 'download',
component: 'views/zip/index',
name: 'ExportZip',
- meta: { title: 'exportZip' }
+ meta: { title: 'Export Zip' }
}
]
},
@@ -459,7 +459,7 @@ export const asyncRoutes = [
path: 'index',
component: 'views/pdf/index',
name: 'PDF',
- meta: { title: 'pdf', icon: 'pdf' }
+ meta: { title: 'PDF', icon: 'pdf' }
}
]
},
@@ -478,7 +478,7 @@ export const asyncRoutes = [
path: 'index',
component: 'views/theme/index',
name: 'Theme',
- meta: { title: 'theme', icon: 'theme' }
+ meta: { title: 'Theme', icon: 'theme' }
}
]
},
@@ -492,7 +492,7 @@ export const asyncRoutes = [
path: 'index',
component: 'views/clipboard/index',
name: 'ClipboardDemo',
- meta: { title: 'clipboardDemo', icon: 'clipboard' }
+ meta: { title: 'Clipboard Demo', icon: 'clipboard' }
}
]
},
@@ -505,7 +505,7 @@ export const asyncRoutes = [
path: 'index',
component: 'views/i18n-demo/index',
name: 'I18n',
- meta: { title: 'i18n', icon: 'international' }
+ meta: { title: 'I18n', icon: 'international' }
}
]
},
@@ -516,7 +516,7 @@ export const asyncRoutes = [
children: [
{
path: 'https://github.com/PanJiaChen/vue-element-admin',
- meta: { title: 'externalLink', icon: 'link' }
+ meta: { title: 'External Link', icon: 'link' }
}
]
},