优化命令概览的生成逻辑,只显示输入框的值

This commit is contained in:
fofolee
2025-01-27 13:05:11 +08:00
parent 4461619a39
commit 17cec93767
2 changed files with 49 additions and 34 deletions

View File

@@ -37,7 +37,7 @@ export const newEmptyVarInputVal = (type = "str") => {
* @returns {string} 处理后的字符串
*/
export const stringifyVarInputVal = (argv) => {
if (!argv.isString) return argv.value;
if (!argv.isString) return argv.value.toString();
try {
return JSON.stringify(argv.value);
} catch (e) {