fix: 修复 /profile rename 命令中 args 未定义的问题
- 在 handleProfileCommandV2 中添加 args 变量定义 - 现在 /profile rename 可以正常使用
This commit is contained in:
@@ -812,6 +812,7 @@ async function handleProfileCommandV2(message, content, feishu) {
|
|||||||
const spaceIndex = remainingText.indexOf(' ');
|
const spaceIndex = remainingText.indexOf(' ');
|
||||||
const subCommand = spaceIndex === -1 ? remainingText : remainingText.substring(0, spaceIndex);
|
const subCommand = spaceIndex === -1 ? remainingText : remainingText.substring(0, spaceIndex);
|
||||||
const paramsText = spaceIndex === -1 ? '' : remainingText.substring(spaceIndex + 1).trim();
|
const paramsText = spaceIndex === -1 ? '' : remainingText.substring(spaceIndex + 1).trim();
|
||||||
|
const args = paramsText ? paramsText.split(/\s+/) : [];
|
||||||
|
|
||||||
const configPath = path.join(process.cwd(), 'config', 'qiniu-config.json');
|
const configPath = path.join(process.cwd(), 'config', 'qiniu-config.json');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user