Browse Source

add relations?: IRelation[];

visuddhinanda 2 years ago
parent
commit
7aa7ab691e
1 changed files with 2 additions and 0 deletions
  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 { createSlice, PayloadAction } from "@reduxjs/toolkit";
+import { IRelation } from "../pages/admin/relation/list";
 
 
 import type { RootState } from "../store";
 import type { RootState } from "../store";
 
 
@@ -11,6 +12,7 @@ export interface IRelationParam {
   src_sn?: string;
   src_sn?: string;
   target_id?: string;
   target_id?: string;
   target_spell?: string;
   target_spell?: string;
+  relations?: IRelation[];
   command: "add" | "apply" | "cancel" | "finish";
   command: "add" | "apply" | "cancel" | "finish";
 }
 }
 interface IState {
 interface IState {