feat:添加登录页面,完善文章目录
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
这个是登录页面
|
||||
<h2> 登录-欢迎</h2>
|
||||
<el-input v-model="loginForm.userName" placeholder="用户名" />
|
||||
<el-input v-model="loginForm.password" placeholder="密码" />
|
||||
<el-button type="primary" @click="login">登录</el-button>
|
||||
<el-button class="login-btn" type="primary" @click="login">登录</el-button>
|
||||
</template>
|
||||
<script setup>
|
||||
import { reactive } from 'vue';
|
||||
@@ -25,4 +25,18 @@ if( response.code==undefined)
|
||||
}
|
||||
}
|
||||
|
||||
</script>
|
||||
</script>
|
||||
<style scoped>
|
||||
h2{
|
||||
text-align: center;
|
||||
}
|
||||
.el-input
|
||||
{
|
||||
margin:0rem 0 0.5rem 0;
|
||||
|
||||
}
|
||||
.login-btn
|
||||
{
|
||||
width: 100%;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user