fix(flow): no transform of id to ref
This commit is contained in:
@@ -31,10 +31,10 @@ export class Storage {
|
|||||||
public create(id: string, options?: Partial<FlowOptions>) {
|
public create(id: string, options?: Partial<FlowOptions>) {
|
||||||
const store = useStore(options)
|
const store = useStore(options)
|
||||||
const flow: UseVueFlow = {
|
const flow: UseVueFlow = {
|
||||||
id,
|
|
||||||
store,
|
|
||||||
...(store as any),
|
...(store as any),
|
||||||
...toRefs(store.state),
|
...toRefs(store.state),
|
||||||
|
id,
|
||||||
|
store,
|
||||||
}
|
}
|
||||||
this.set(id, flow)
|
this.set(id, flow)
|
||||||
return flow
|
return flow
|
||||||
|
|||||||
Reference in New Issue
Block a user