From 2898a6362fee626c379fcc07dbae915c9fe6b980 Mon Sep 17 00:00:00 2001 From: Jason Date: Fri, 17 Sep 2021 12:47:42 +0800 Subject: [PATCH] vuex --- src/App.vue | 3 ++ src/api/index.ts | 2 +- src/{config => api}/interfaces/auth.ts | 0 src/main.ts | 4 +-- src/router/index.ts | 5 +-- src/{config => router}/routers/auth.ts | 0 src/store/index.ts | 46 ++++++++++++++++++++------ src/store/modules/auth.ts | 22 ++++++++++++ src/types/auth.d.ts | 14 ++++---- src/types/router.d.ts | 5 +-- src/types/user.d.ts | 10 ++++++ src/views/Auth/login.vue | 6 ++-- src/views/Home/index.vue | 7 ++++ 13 files changed, 96 insertions(+), 28 deletions(-) rename src/{config => api}/interfaces/auth.ts (100%) rename src/{config => router}/routers/auth.ts (100%) create mode 100644 src/store/modules/auth.ts create mode 100644 src/types/user.d.ts diff --git a/src/App.vue b/src/App.vue index 25a1ace..e0fa93e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -4,6 +4,9 @@ + + Home | + Login