瀏覽代碼

add relations?: IRelation[];

visuddhinanda 2 年之前
父節點
當前提交
7aa7ab691e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dashboard/src/reducers/relation-add.ts

+ 2 - 0
dashboard/src/reducers/relation-add.ts

@@ -2,6 +2,7 @@
  * 查字典,添加术语命令
  */
 import { createSlice, PayloadAction } from "@reduxjs/toolkit";
+import { IRelation } from "../pages/admin/relation/list";
 
 import type { RootState } from "../store";
 
@@ -11,6 +12,7 @@ export interface IRelationParam {
   src_sn?: string;
   target_id?: string;
   target_spell?: string;
+  relations?: IRelation[];
   command: "add" | "apply" | "cancel" | "finish";
 }
 interface IState {