token refresh and exp check
This commit is contained in:
parent
f1e6e8b8d3
commit
91ff0835fb
5 changed files with 25 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
import type { AxiosInstance } from "axios";
|
||||
import type { NProgress } from "nprogress";
|
||||
import type { Router } from "vue-router";
|
||||
import type { RouteLocationNormalizedLoaded, Router } from "vue-router";
|
||||
|
||||
declare module "@vue/runtime-core" {
|
||||
interface ComponentCustomProperties {
|
||||
|
@ -8,7 +8,7 @@ declare module "@vue/runtime-core" {
|
|||
$http: AxiosInstance;
|
||||
$progress: NProgress;
|
||||
$router: Router;
|
||||
$route: any;
|
||||
$route: RouteLocationNormalizedLoaded;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue