Skip to content

Commit

Permalink
fix(projects): fix useRouter. fixed #436
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed May 19, 2024
1 parent 68ea974 commit 0774a51
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/store/modules/tab/index.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { computed, ref } from 'vue';
import { useRouter } from 'vue-router';
import { defineStore } from 'pinia';
import { useEventListener } from '@vueuse/core';
import type { RouteKey } from '@elegant-router/types';
import { router } from '@/router';
import { SetupStoreId } from '@/enum';
import { useRouterPush } from '@/hooks/common/router';
import { localStg } from '@/utils/storage';
Expand All @@ -23,7 +23,6 @@ import {
} from './shared';

export const useTabStore = defineStore(SetupStoreId.Tab, () => {
const router = useRouter();
const routeStore = useRouteStore();
const themeStore = useThemeStore();
const { routerPush } = useRouterPush(false);
Expand Down

0 comments on commit 0774a51

Please sign in to comment.