Skip to content

Commit

Permalink
fix: inject typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 13, 2021
1 parent f32ae27 commit dad93a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/use/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ import { useScroll } from './scroll'

export const useGraph = () => {
const store = useStore()
const scroll = useScroll()

const load = async (go: string | symbol, page: ContextState) => {
store.commit('context/load', page)
await nextTick
useScroll().to(String(go))
scroll.to(String(go))
}

return { load }
Expand Down

0 comments on commit dad93a3

Please sign in to comment.