Skip to content

Commit

Permalink
fix: 插件支持系统级别配置到特定空间使用 #104
Browse files Browse the repository at this point in the history
# Reviewed, transaction id: 32416
  • Loading branch information
ywywZhou authored and normal-wls committed Mar 4, 2025
1 parent 1cd8dbc commit 497a1a5
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion frontend/src/views/task/TaskExecute/ExecuteInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@
this.isRenderOutputForm = true;
} else {
try {
const res = await this.loadAtomConfig({ atom: type, version });
const res = await this.loadAtomConfig({ atom: type, version, space_id: this.spaceId });
// api插件输入输出
if (this.pluginCode === 'uniform_api') {
const { api_meta: apiMeta } = this.nodeActivity.component || {};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
const outputs = [];
// 获取第三方插件公共输出参数
if (!this.pluginOutput.remote_plugin) {
await this.loadAtomConfig({ atom: 'remote_plugin', version: '1.0.0' });
await this.loadAtomConfig({ atom: 'remote_plugin', version: '1.0.0', space_id: this.spaceId });
}
const storeOutputs = this.pluginOutput.remote_plugin['1.0.0'];
for (const [key, val] of Object.entries(respOutputs.properties)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@
const outputs = [];
// 获取第三方插件公共输出参数
if (!this.pluginOutput.remote_plugin) {
await this.loadAtomConfig({ atom: 'remote_plugin', version: '1.0.0' });
await this.loadAtomConfig({ atom: 'remote_plugin', version: '1.0.0', space_id: this.spaceId });
}
const storeOutputs = this.pluginOutput.remote_plugin['1.0.0'];
for (const [key, val] of Object.entries(respOutputs.properties)) {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/views/template/TemplateEdit/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,7 @@
// 接口获取最新配置信息
this.atomConfigLoading = true;
try {
await this.loadAtomConfig({ atom: code, version });
await this.loadAtomConfig({ atom: code, version, space_id: this.spaceId });
const config = this.atomConfig[code] && this.atomConfig[code][version];
if (config) {
this.addSingleAtomActivities(location, config);
Expand Down Expand Up @@ -711,7 +711,7 @@
// 全局变量版本
const version = form.version || 'legacy';
if (!atomFilter.isConfigExists(atom, version, this.atomConfig)) {
await this.loadAtomConfig({ name, atom, classify, version });
await this.loadAtomConfig({ name, atom, classify, version, space_id: this.spaceId });
}
const atomConfig = this.atomConfig[atom][version];
let currentFormConfig = tools.deepClone(atomFilter.formFilter(tagCode, atomConfig));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@
const outputs = [];
// 获取第三方插件公共输出参数
if (!this.pluginOutput.remote_plugin) {
await this.loadAtomConfig({ atom: 'remote_plugin', version: '1.0.0' });
await this.loadAtomConfig({ atom: 'remote_plugin', version: '1.0.0', space_id: this.spaceId });
}
const storeOutputs = this.pluginOutput.remote_plugin['1.0.0'];
for (const [key, val] of Object.entries(respOutputs.properties)) {
Expand Down

0 comments on commit 497a1a5

Please sign in to comment.