From d9c0811199095cf0e779c3422affac5128f20b7d Mon Sep 17 00:00:00 2001 From: JayChou <2064936853@qq.com> Date: Mon, 23 Sep 2024 15:44:38 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=AE=8C=E6=88=90=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- src/Layout/tabbar/index.vue | 52 +++++-- src/api/user.ts | 25 +++ src/assets/images/bg.png | Bin 0 -> 496056 bytes src/assets/images/code.png | Bin 0 -> 2197 bytes src/main.ts | 10 +- src/permissions.ts | 23 +++ src/router/index.ts | 3 +- src/router/module/constRouter/defineRouter.ts | 11 ++ src/store/module/user.ts | 45 ++++++ src/styles/index.scss | 4 +- src/utils/requset.ts | 7 + src/utils/token.ts | 9 ++ src/views/home/index.vue | 108 ++++++++++++- src/views/login/index.vue | 146 ++++++++++++++++++ 15 files changed, 425 insertions(+), 20 deletions(-) create mode 100644 src/api/user.ts create mode 100644 src/assets/images/bg.png create mode 100644 src/assets/images/code.png create mode 100644 src/permissions.ts create mode 100644 src/router/module/constRouter/defineRouter.ts create mode 100644 src/store/module/user.ts create mode 100644 src/utils/token.ts create mode 100644 src/views/login/index.vue diff --git a/.env.development b/.env.development index 0c9a25a..7118bdf 100644 --- a/.env.development +++ b/.env.development @@ -1,5 +1,5 @@ # 变量必须以 VITE_ 为前缀才能暴露给外部读取 NODE_ENV = 'development' VITE_APP_TITLE = '教学一体化平台' -VITE_APP_BASE_API = 'http://39.106.16.162:8080' +VITE_APP_BASE_API = http://localhost:18085/jeecg-boot # VITE_APP_BASE_API = 'http://127.0.0.1:8080' \ No newline at end of file diff --git a/src/Layout/tabbar/index.vue b/src/Layout/tabbar/index.vue index 8b6a9b5..83133ab 100644 --- a/src/Layout/tabbar/index.vue +++ b/src/Layout/tabbar/index.vue @@ -14,9 +14,27 @@ -
+
注册
- + +
+
+
+ +
+ + + {{ useUserStore.userInfo.username }} + + + + + +
@@ -24,12 +42,11 @@ diff --git a/src/views/login/index.vue b/src/views/login/index.vue new file mode 100644 index 0000000..d598bae --- /dev/null +++ b/src/views/login/index.vue @@ -0,0 +1,146 @@ + + + + +