feat: 新增一键打开渠道脚本
This commit is contained in:
@@ -23,6 +23,8 @@ export class executeScriptService extends EventEmitter {
|
||||
const endTime = options?.endTime ?? '';
|
||||
const operation = options?.operation ?? '';
|
||||
const tabIndex = options?.tabIndex ?? '';
|
||||
const channels = options?.channels ?? '';
|
||||
const startTabIndex = options?.startTabIndex ?? '';
|
||||
|
||||
const child = spawn('node', [scriptPath], {
|
||||
env: {
|
||||
@@ -32,6 +34,8 @@ export class executeScriptService extends EventEmitter {
|
||||
END_DATE: String(endTime),
|
||||
OPERATION: String(operation),
|
||||
TAB_INDEX: String(tabIndex),
|
||||
CHANNELS: typeof channels === 'string' ? channels : JSON.stringify(channels),
|
||||
START_TAB_INDEX: String(startTabIndex),
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user