统一格式化参数的方法

This commit is contained in:
fofolee
2025-01-06 09:43:48 +08:00
parent d98966a5b0
commit 2dbd6f0c50
16 changed files with 130 additions and 144 deletions

View File

@@ -383,7 +383,7 @@
import { defineComponent } from "vue";
import VariableInput from "components/composer/ui/VariableInput.vue";
import NumberInput from "components/composer/ui/NumberInput.vue";
import { stringifyObject, parseFunction } from "js/composer/formatString";
import { stringifyArgv, parseFunction } from "js/composer/formatString";
// 静态选项数据
const ENCODING_OPTIONS = [
@@ -557,7 +557,7 @@ export default defineComponent({
break;
}
return `${this.modelValue.value}(${stringifyObject(params)})`;
return `${this.modelValue.value}(${stringifyArgv(params)})`;
},
updateArgvs(key, value) {
const argvs = { ...this.argvs };