refactor: update DependencySetupDialog to use language key for tag label; modify useDependencyList to dispatch node retrieval on mount

This commit is contained in:
Marvin Zhang
2025-08-08 11:12:05 +08:00
parent 45913ad7e4
commit babecc46c0
2 changed files with 4 additions and 3 deletions

View File

@@ -133,10 +133,10 @@ defineOptions({ name: 'ClDependencySetupDialog' });
<cl-form ref="formRef" :model="form">
<cl-form-item :span="4" :label="t('views.env.deps.config.form.name')">
<cl-tag
:key="config?.name"
:key="lang"
class="dep-name"
type="primary"
:label="config?.name"
:label="lang"
/>
</cl-form-item>
<cl-form-item

View File

@@ -726,10 +726,11 @@ const useDependencyList = () => {
tableColumns,
} as UseListOptions<Task>;
setupListComponent(ns, store, ['node'], false);
setupListComponent(ns, store, false);
setupAutoUpdate(getData, 10000);
onBeforeMount(() => store.dispatch(`${ns}/getConfigSetupList`));
onBeforeMount(() => store.dispatch(`node/getAllNodes`));
return {
...useList<Dependency>(ns, store, opts),