Skip to content

Commit ea162f3

Browse files
committed
Fix frontend error
1 parent 3918123 commit ea162f3

File tree

3 files changed

+17
-23
lines changed

3 files changed

+17
-23
lines changed

frontend/src/main.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ Vue.use(VueTour)
5050
Vue.config.productionTip = false
5151

5252
// 百度统计
53-
// if (localStorage.getItem('useStats') !== '0') {
54-
// window._hmt = window._hmt || [];
55-
// (function () {
56-
// let hm = document.createElement('script')
57-
// hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add'
58-
// let s = document.getElementsByTagName('script')[0]
59-
// s.parentNode.insertBefore(hm, s)
60-
// })()
61-
// }
53+
if (localStorage.getItem('useStats') !== '0') {
54+
window._hmt = window._hmt || [];
55+
(function() {
56+
const hm = document.createElement('script')
57+
hm.src = 'https://hm.baidu.com/hm.js?c35e3a563a06caee2524902c81975add'
58+
const s = document.getElementsByTagName('script')[0]
59+
s.parentNode.insertBefore(hm, s)
60+
})()
61+
}
6262

6363
// inject request api
6464
Vue.prototype.$request = request

frontend/src/store/modules/user.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,6 @@ const user = {
5353
// 获取用户信息
5454
getInfo({ commit, state }) {
5555
return request.get('/me')
56-
.then(response => {
57-
// ensure compatibility
58-
if (response.data.data.setting && !response.data.data.setting.max_error_log) {
59-
response.data.data.setting.max_error_log = 1000
60-
}
61-
})
6256
},
6357

6458
// 登出

frontend/src/views/task/TaskList.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@
227227
// tutorial
228228
tourSteps: [
229229
{
230-
target: '.filter-form',
230+
target: '.filter',
231231
content: this.$t('You can filter tasks from this area.')
232232
},
233233
{
@@ -237,14 +237,14 @@
237237
{
238238
target: '.table .el-table__body-wrapper tr:nth-child(1)',
239239
content: this.$t('Click the row to or the view button to view the task detail.')
240-
},
241-
{
242-
target: '.table tr td:nth-child(1)',
243-
content: this.$t('Tick and select the tasks you would like to delete in batches.'),
244-
params: {
245-
placement: 'right'
246-
}
247240
}
241+
// {
242+
// target: '.table tr td:nth-child(1)',
243+
// content: this.$t('Tick and select the tasks you would like to delete in batches.'),
244+
// params: {
245+
// placement: 'right'
246+
// }
247+
// }
248248
],
249249
tourCallbacks: {
250250
onStop: () => {

0 commit comments

Comments
 (0)