mirror of
https://gitee.com/ssssssss-team/magic-api.git
synced 2026-05-08 03:16:39 +08:00
定时任务插件优化
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
export default function (bus, constants, $i, Message, request) {
|
||||
return {
|
||||
// svg text
|
||||
getIcon: item => 'task',
|
||||
getIcon: item => ['TASK', '#9012FE'],
|
||||
// 任务名称
|
||||
name: $i('task.name'),
|
||||
language: 'magicscript',
|
||||
// 执行测试的逻辑
|
||||
doTest: (opened) => {
|
||||
opened.running = true
|
||||
@@ -38,4 +39,4 @@ export default function (bus, constants, $i, Message, request) {
|
||||
// 合并
|
||||
merge: item => item
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user