From ea162f3b083d6cdd7e835483dde5458fcf436be4 Mon Sep 17 00:00:00 2001 From: zkqiang Date: Tue, 14 Jul 2020 14:51:03 +0800 Subject: [PATCH] Fix frontend error --- frontend/src/main.js | 18 +++++++++--------- frontend/src/store/modules/user.js | 6 ------ frontend/src/views/task/TaskList.vue | 16 ++++++++-------- 3 files changed, 17 insertions(+), 23 deletions(-) diff --git a/frontend/src/main.js b/frontend/src/main.js index cbd4b83..237f03c 100644 --- a/frontend/src/main.js +++ b/frontend/src/main.js @@ -50,15 +50,15 @@ Vue.use(VueTour) Vue.config.productionTip = false // 百度统计 -// if (localStorage.getItem('useStats') !== '0') { -// window._hmt = window._hmt || []; -// (function () { -// let hm = document.createElement('script') -// hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add' -// let s = document.getElementsByTagName('script')[0] -// s.parentNode.insertBefore(hm, s) -// })() -// } +if (localStorage.getItem('useStats') !== '0') { + window._hmt = window._hmt || []; + (function() { + const hm = document.createElement('script') + hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add' + const s = document.getElementsByTagName('script')[0] + s.parentNode.insertBefore(hm, s) + })() +} // inject request api Vue.prototype.$request = request diff --git a/frontend/src/store/modules/user.js b/frontend/src/store/modules/user.js index 0893fcb..ef21265 100644 --- a/frontend/src/store/modules/user.js +++ b/frontend/src/store/modules/user.js @@ -53,12 +53,6 @@ const user = { // 获取用户信息 getInfo({ commit, state }) { return request.get('/me') - .then(response => { - // ensure compatibility - if (response.data.data.setting && !response.data.data.setting.max_error_log) { - response.data.data.setting.max_error_log = 1000 - } - }) }, // 登出 diff --git a/frontend/src/views/task/TaskList.vue b/frontend/src/views/task/TaskList.vue index 1603e10..2b9027f 100644 --- a/frontend/src/views/task/TaskList.vue +++ b/frontend/src/views/task/TaskList.vue @@ -227,7 +227,7 @@ // tutorial tourSteps: [ { - target: '.filter-form', + target: '.filter', content: this.$t('You can filter tasks from this area.') }, { @@ -237,14 +237,14 @@ { target: '.table .el-table__body-wrapper tr:nth-child(1)', content: this.$t('Click the row to or the view button to view the task detail.') - }, - { - target: '.table tr td:nth-child(1)', - content: this.$t('Tick and select the tasks you would like to delete in batches.'), - params: { - placement: 'right' - } } + // { + // target: '.table tr td:nth-child(1)', + // content: this.$t('Tick and select the tasks you would like to delete in batches.'), + // params: { + // placement: 'right' + // } + // } ], tourCallbacks: { onStop: () => {