File management

This commit is contained in:
2025-07-27 00:29:59 +08:00
parent 02af78ca99
commit 46612b28aa
6 changed files with 250 additions and 13 deletions

View File

@@ -27,6 +27,12 @@ const router = createRouter({
component: () => import('../views/dashboard/usage.vue'),
meta: { requiresAuth: true },
},
{
path: 'files',
name: 'dashboardFiles',
component: () => import('../views/dashboard/files.vue'),
meta: { requiresAuth: true },
}
],
},
{
@@ -42,7 +48,7 @@ router.beforeEach(async (to, from, next) => {
const servicesStore = useServicesStore()
// Initialize user state if not already initialized
if (!userStore.user && localStorage.getItem('authToken')) {
if (!userStore.user) {
await userStore.fetchUser()
}