mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-25 17:42:25 +01:00
updated frontend to adapt changes of golang version
This commit is contained in:
@@ -56,7 +56,7 @@ export default {
|
||||
this.$st.sendEv('爬虫详情-环境', '删除')
|
||||
},
|
||||
save () {
|
||||
this.$store.dispatch('spider/updateSpiderEnvs')
|
||||
this.$store.dispatch('spider/editSpider')
|
||||
.then(() => {
|
||||
this.$message.success(this.$t('Spider info has been saved successfully'))
|
||||
})
|
||||
|
||||
@@ -66,7 +66,7 @@ export default {
|
||||
onRestart () {
|
||||
},
|
||||
onStop () {
|
||||
this.$store.dispatch('task/stopTask', this.$route.params.id)
|
||||
this.$store.dispatch('task/cancelTask', this.$route.params.id)
|
||||
.then(() => {
|
||||
this.$message.success(`Task "${this.$route.params.id}" has been sent signal to stop`)
|
||||
})
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
:header-cell-style="{background:'rgb(48, 65, 86)',color:'white'}"
|
||||
border>
|
||||
<template v-for="col in columns">
|
||||
<el-table-column :key="col" :label="col" :property="col" align="center">
|
||||
<el-table-column :key="col" :label="col" :property="col" min-width="120">
|
||||
</el-table-column>
|
||||
</template>
|
||||
</el-table>
|
||||
|
||||
Reference in New Issue
Block a user