code cleanup

This commit is contained in:
marvzhang
2020-02-13 11:44:28 +08:00
parent 7c4ddd2824
commit d840450c1b
2 changed files with 3 additions and 2 deletions

View File

@@ -212,11 +212,12 @@ export default {
}
},
mounted () {
this.currentLogIndex = 0
this.handle = setInterval(() => {
if (this.isToBottom) {
this.toBottom()
}
}, 500)
}, 200)
},
destroyed () {
clearInterval(this.handle)
@@ -269,6 +270,7 @@ export default {
border-bottom: 1px solid #DCDFE6;
height: calc(100vh - 240px);
font-size: 16px;
overflow: auto;
}
.errors-wrapper.collapsed {

View File

@@ -42,7 +42,6 @@ import {
import TaskOverview from '../../components/Overview/TaskOverview'
import GeneralTableView from '../../components/TableView/GeneralTableView'
import LogView from '../../components/ScrollView/LogView'
import request from '../../api/request'
export default {
name: 'TaskDetail',