feat:添加登录页面,完善文章目录

This commit is contained in:
橙子
2023-03-18 01:34:07 +08:00
parent 1bb7ce6805
commit c613b185da
8 changed files with 71 additions and 85 deletions

View File

@@ -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>