diff --git a/src/App.vue b/src/App.vue
index 20cec81c..3dcfa976 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -61,6 +61,8 @@
diff --git a/src/pages/Home.vue b/src/pages/Home.vue
index 7b39570b..12a84ab0 100644
--- a/src/pages/Home.vue
+++ b/src/pages/Home.vue
@@ -1,83 +1,85 @@
-
-
-
-
-
-
-
-
-
+
-
-
-
+
-
+
+
-
-
+
+ {{ item.type }}
+
+
+
+
-
- {{ tool.name }}
-
-
-
-
-
-
-
-
-
-
-
+
{{ tool.name }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/index.ts b/src/pages/index.ts
index 258bd9b2..474c6a30 100644
--- a/src/pages/index.ts
+++ b/src/pages/index.ts
@@ -3,3 +3,4 @@ export { default as Page404 } from './404.vue'
export { default as Home } from './Home.vue'
export { default as Offline } from './Offline.vue'
export { default as Redirect } from './Redirect.vue'
+export { default as Loading } from './Loading.vue'
diff --git a/src/plugins/Router.ts b/src/plugins/Router.ts
index 080dbf6c..2c6fcb19 100644
--- a/src/plugins/Router.ts
+++ b/src/plugins/Router.ts
@@ -87,7 +87,7 @@ const internalRoutes: RouteRecordRaw[] = [
path: '/logout',
name: '登出',
component: () => h(RouterView),
- beforeEnter: (to, from, next) => {
+ beforeEnter: (_, from, next) => {
userStore.logout().then(() => next(from))
}
},
@@ -119,7 +119,7 @@ const router = createRouter({
routes
})
-router.beforeEach(async (to: RouteLocationNormalized, from: RouteLocationNormalized, next: NavigationGuardNext) => {
+router.beforeEach(async (to: RouteLocationNormalized, _: RouteLocationNormalized, next: NavigationGuardNext) => {
userStore.checkToken().then()
// 在线应用离线直接跳转
if (to.meta.offline === false && !navigator.onLine) {
@@ -149,7 +149,7 @@ router.beforeEach(async (to: RouteLocationNormalized, from: RouteLocationNormali
}
})
-router.afterEach((to, from, failure) => {
+router.afterEach((to, _, failure) => {
if (!failure) {
document.title = getPageTitle(to.meta.title || to.name?.toString())
if (to.name && to.meta.type === 'tool') {
diff --git a/vite.config.ts b/vite.config.ts
index 3db56a08..abee774c 100644
--- a/vite.config.ts
+++ b/vite.config.ts
@@ -144,7 +144,7 @@ export default defineConfig({
maxEntries: 30
},
cacheableResponse: {
- statuses: [0, 200]
+ statuses: [200]
}
}
},