mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-22 17:31:03 +01:00
fix 爬虫列表按钮无法点击的问题
This commit is contained in:
@@ -424,13 +424,18 @@ export default {
|
||||
this.dialogVisible = true
|
||||
},
|
||||
isShowRun (row) {
|
||||
if (this.isCustomized(row)) {
|
||||
// customized spider
|
||||
return !!row.cmd
|
||||
if (row.cmd) {
|
||||
return true
|
||||
} else {
|
||||
// configurable spider
|
||||
return !!row.fields
|
||||
return false
|
||||
}
|
||||
// if (this.isCustomized(row)) {
|
||||
// // customized spider
|
||||
// return !!row.cmd
|
||||
// } else {
|
||||
// // configurable spider
|
||||
// return !!row.fields
|
||||
// }
|
||||
},
|
||||
isCustomized (row) {
|
||||
return row.type === 'customized'
|
||||
|
||||
Reference in New Issue
Block a user