@huanban/rulego-editor-core 1.3.10 → 1.3.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,6 +76,8 @@ export declare class RuleChainAPI implements WorkflowFetcher {
76
76
  */
77
77
  private request;
78
78
  private getHeaders;
79
+ private getRuleChainId;
80
+ private resolveCreatePath;
79
81
  /**
80
82
  * 将后端 RuleChain DSL 对象转为前端扁平化 WorkflowItem
81
83
  *
@@ -125,7 +125,7 @@ export interface RulePatchPreviewResponse {
125
125
  * return res.data
126
126
  * },
127
127
  * create: async (data) => {
128
- * await axios.post('/api/v1/rules', data)
128
+ * await axios.post(`/api/v1/rules/${data.ruleChain.id}`, data)
129
129
  * return { success: true }
130
130
  * },
131
131
  * // ...
@@ -256,7 +256,7 @@ export type WorkflowTheme = 'light' | 'dark' | string;
256
256
  export interface RuleChainRoutes {
257
257
  /** 列表路径,默认 '/rules' */
258
258
  list: string;
259
- /** 创建路径,默认 '/rules' */
259
+ /** 创建/保存路径模板,默认 '/rules/:id' */
260
260
  create: string;
261
261
  /** 删除路径,接收 (id) => string,默认 '/rules/:id' */
262
262
  remove: (id: string) => string;