登录页和注册页表头使用VUE_APP_TITLE配置值
| | |
| | | <template>
|
| | | <div class="login">
|
| | | <el-form ref="loginForm" :model="loginForm" :rules="loginRules" class="login-form">
|
| | | <h3 class="title">若依后台管理系统</h3>
|
| | | <h3 class="title">{{title}}</h3>
|
| | | <el-form-item prop="username">
|
| | | <el-input
|
| | | v-model="loginForm.username"
|
| | |
| | | name: "Login",
|
| | | data() {
|
| | | return {
|
| | | title: process.env.VUE_APP_TITLE,
|
| | | codeUrl: "",
|
| | | loginForm: {
|
| | | username: "admin",
|
| | |
| | | <template>
|
| | | <div class="register">
|
| | | <el-form ref="registerForm" :model="registerForm" :rules="registerRules" class="register-form">
|
| | | <h3 class="title">若依后台管理系统</h3>
|
| | | <h3 class="title">{{title}}</h3>
|
| | | <el-form-item prop="username">
|
| | | <el-input v-model="registerForm.username" type="text" auto-complete="off" placeholder="账号">
|
| | | <svg-icon slot="prefix" icon-class="user" class="el-input__icon input-icon" />
|
| | |
| | | }
|
| | | };
|
| | | return {
|
| | | title: process.env.VUE_APP_TITLE,
|
| | | codeUrl: "",
|
| | | registerForm: {
|
| | | username: "",
|