From 43115e5538533ca82ebc9044931127dce729f9b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E8=A3=A4=E8=A1=A9?= Date: Thu, 4 Apr 2019 12:58:37 +0800 Subject: [PATCH 01/12] perf: optimize page view name (#1835) --- mock/role/routes.js | 2 +- src/router/index.js | 2 +- src/views/login/{authredirect.vue => authRedirect.vue} | 2 +- src/views/login/index.vue | 2 +- src/views/login/{socialsignin.vue => socialSignin.vue} | 0 5 files changed, 4 insertions(+), 4 deletions(-) rename src/views/login/{authredirect.vue => authRedirect.vue} (92%) rename src/views/login/{socialsignin.vue => socialSignin.vue} (100%) diff --git a/mock/role/routes.js b/mock/role/routes.js index d8eaf42a..14413d48 100644 --- a/mock/role/routes.js +++ b/mock/role/routes.js @@ -19,7 +19,7 @@ export const constantRoutes = [ }, { path: '/auth-redirect', - component: 'views/login/authredirect', + component: 'views/login/authRedirect', hidden: true }, { diff --git a/src/router/index.js b/src/router/index.js index a883d398..22dad190 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -57,7 +57,7 @@ export const constantRoutes = [ }, { path: '/auth-redirect', - component: () => import('@/views/login/authredirect'), + component: () => import('@/views/login/authRedirect'), hidden: true }, { diff --git a/src/views/login/authredirect.vue b/src/views/login/authRedirect.vue similarity index 92% rename from src/views/login/authredirect.vue rename to src/views/login/authRedirect.vue index 69e15397..7df89342 100644 --- a/src/views/login/authredirect.vue +++ b/src/views/login/authRedirect.vue @@ -1,6 +1,6 @@ diff --git a/src/views/table/dragTable.vue b/src/views/table/dragTable.vue index 50077c6c..7abbd932 100644 --- a/src/views/table/dragTable.vue +++ b/src/views/table/dragTable.vue @@ -113,9 +113,9 @@ export default { this.sortable = Sortable.create(el, { ghostClass: 'sortable-ghost', // Class name for the drop placeholder, setData: function(dataTransfer) { - dataTransfer.setData('Text', '') // to avoid Firefox bug // Detail see : https://github.com/RubaXa/Sortable/issues/1012 + dataTransfer.setData('Text', '') }, onEnd: evt => { const targetRow = this.list.splice(evt.oldIndex, 1)[0] From 770753eff2127cc3f67a4f42be761411763d2805 Mon Sep 17 00:00:00 2001 From: Pan Date: Thu, 4 Apr 2019 17:43:12 +0800 Subject: [PATCH 05/12] fix[request.js]: fixed missing return --- src/utils/request.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/request.js b/src/utils/request.js index a9b8c18f..b043c933 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -23,7 +23,7 @@ service.interceptors.request.use( error => { // Do something with request error console.log(error) // for debug - Promise.reject(error) + return Promise.reject(error) } ) From 7492e2097f189897eab207f96a79bf5b665df53a Mon Sep 17 00:00:00 2001 From: anson Date: Thu, 4 Apr 2019 17:51:45 +0800 Subject: [PATCH 06/12] fix[ErrorLog]: fixed error log dialog z-index bug (#1844) https://github.com/PanJiaChen/vue-element-admin/issues/1830 --- src/components/ErrorLog/index.vue | 2 +- src/settings.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/ErrorLog/index.vue b/src/components/ErrorLog/index.vue index 9cc43886..7ffa573b 100644 --- a/src/components/ErrorLog/index.vue +++ b/src/components/ErrorLog/index.vue @@ -6,7 +6,7 @@ - + diff --git a/src/views/excel/selectExcel.vue b/src/views/excel/selectExcel.vue index 05c52f5f..09866e13 100644 --- a/src/views/excel/selectExcel.vue +++ b/src/views/excel/selectExcel.vue @@ -1,7 +1,7 @@