mirror of
https://github.com/fofolee/uTools-quickcommand.git
synced 2025-12-18 09:57:23 +08:00
修改DNS组件
This commit is contained in:
@@ -36,9 +36,15 @@ export default defineComponent({
|
||||
},
|
||||
// 通用参数配置
|
||||
commonConfig() {
|
||||
return this.modelValue.config || [];
|
||||
return (
|
||||
// 过滤掉特定函数排除的参数, excludeConfig格式为[要排除的参数索引]
|
||||
this.modelValue.config?.filter(
|
||||
(_, index) =>
|
||||
!this.getSelectFunction()?.excludeConfig?.includes(index)
|
||||
) || []
|
||||
);
|
||||
},
|
||||
// 特定函数独有参数配置
|
||||
// 特定函数独有参数配置,config格式和通用的config一致
|
||||
functionConfig() {
|
||||
return this.getSelectFunction()?.config || [];
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user