Skip to content

Commit

Permalink
Fix frontend error
Browse files Browse the repository at this point in the history
  • Loading branch information
zkqiang committed Jul 14, 2020
1 parent 3918123 commit ea162f3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 23 deletions.
18 changes: 9 additions & 9 deletions frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions frontend/src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
})
},

// 登出
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/views/task/TaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@
// tutorial
tourSteps: [
{
target: '.filter-form',
target: '.filter',
content: this.$t('You can filter tasks from this area.')
},
{
Expand All @@ -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: () => {
Expand Down

0 comments on commit ea162f3

Please sign in to comment.