RuoYi
2025-03-18 060959a7c5d7ff96bf1c036f6693f1fddea060e0
登录页和注册页表头使用VUE_APP_TITLE配置值
2 files modified
6 ■■■■■ changed files
ruoyi-ui/src/views/login.vue 3 ●●●● patch | view | raw | blame | history
ruoyi-ui/src/views/register.vue 3 ●●●● patch | view | raw | blame | history
ruoyi-ui/src/views/login.vue
@@ -1,7 +1,7 @@
<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"
@@ -70,6 +70,7 @@
  name: "Login",
  data() {
    return {
      title: process.env.VUE_APP_TITLE,
      codeUrl: "",
      loginForm: {
        username: "admin",
ruoyi-ui/src/views/register.vue
@@ -1,7 +1,7 @@
<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" />
@@ -80,6 +80,7 @@
      }
    };
    return {
      title: process.env.VUE_APP_TITLE,
      codeUrl: "",
      registerForm: {
        username: "",