@@ -203,12 +253,12 @@ async function login(){
@@ -216,19 +266,19 @@ async function login(){
login
-
-
+
+
login
-
+
-
+
-
+
@@ -280,10 +330,11 @@ async function login(){
}
.error-msg{
- width:500px;
+ width:30%;
position: absolute;
top:5%;
- left:30%;
+ left:35%;
+ display: flex;
}
.form-box{
diff --git a/Front/vue-unilife/src/main.ts b/Front/vue-unilife/src/main.ts
index e561a97..e0eb237 100644
--- a/Front/vue-unilife/src/main.ts
+++ b/Front/vue-unilife/src/main.ts
@@ -3,7 +3,10 @@ import './style.css'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
+import router from './routers'
const app = createApp(App)
-app.mount('#app')
+
app.use(ElementPlus)
+app.use(router)
+app.mount('#app')
diff --git a/Front/前端环境.md b/Front/前端环境.md
index a5ac5de..e2facf6 100644
--- a/Front/前端环境.md
+++ b/Front/前端环境.md
@@ -45,4 +45,11 @@ pnpm install yup
```cmd
pnpm add element-plus
```
+组件
+### 安装VueRouter
+```cmd
+pnpm i vue-router
+pnpm add vue-router@4
+```
+用来完成界面跳转,同时完成vuerouter与ts的适配
\ No newline at end of file