|
@@ -2,7 +2,7 @@ import { AxiosWrapper } from '@/utils/axios-wrapper'
|
|
|
import { checkResult } from '@/utils/checkResult'
|
|
|
import { UserStore } from '@/store/user'
|
|
|
|
|
|
-export const beforeRouter = (router) => {
|
|
|
+export const registerBeforeRouter = (router) => {
|
|
|
router.beforeEach(async (to, from, next) => {
|
|
|
const userStore = UserStore()
|
|
|
const axios = new AxiosWrapper()
|