From 42fbddc56e7db86a8e035dd8f9043fbc300f2619 Mon Sep 17 00:00:00 2001 From: _ChingC Date: Sun, 1 Oct 2023 00:44:22 +0800 Subject: [PATCH] fix: use incorrect function --- package.json | 2 +- src/router/index.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index b066a6e..3504f9f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "supernode-frontend", "private": true, - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "type": "module", "scripts": { "dev": "vite", diff --git a/src/router/index.ts b/src/router/index.ts index ac3caea..8c54bea 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -1,12 +1,13 @@ import { createRouter, createWebHistory } from "vue-router"; import { useAuthState } from "@/store/auth"; +import { useUserState } from "@/store/user"; import HomeRoute from "@/router/routes/home"; import LoginRoute from "@/router/routes/login"; -import { getMe } from "@/api/v1/business/users"; const { isExpired } = useAuthState(); +const { getMe } = useUserState(); const router = createRouter({ history: createWebHistory(),