Skip to content

Commit e70fcef

Browse files
committed
1 parent 63a0813 commit e70fcef

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

adminforth/documentation/docs/tutorial/08-Plugins/23-background-jobs.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,6 +438,11 @@ For example:
438438
439439
```ts
440440
...
441+
//diff-add
442+
import { useJobInfoStore } from '@/custom/plugins/BackgroundJobsPlugin/useBackgroundJobPlugin.ts';
443+
444+
//diff-add
445+
const jobInfoStore = useJobInfoStore();
441446

442447
const res = await callAdminForthApi({
443448
path: `/plugin/${props.meta.pluginInstanceId}/translate-selected-to-languages`,
@@ -453,7 +458,7 @@ For example:
453458
const jobId = res.jobId;
454459
if (jobId) {
455460
//diff-add
456-
window.OpenJobInfoPopup(jobId);
461+
jobInfoStore.openJobInfoPopup(jobId);
457462
}
458463
}
459464

0 commit comments

Comments
 (0)