Skip to content

Commit

Permalink
feat: login表单title从settings取配置
Browse files Browse the repository at this point in the history
  • Loading branch information
cadecode committed Apr 18, 2023
1 parent 4484b32 commit 66bb369
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/settings.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {

title: 'Uni Boot Admin Vue',
title: 'Uni Boot Admin 管理系统',

/**
* 是否固定头部
Expand Down
5 changes: 4 additions & 1 deletion src/view/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
>

<div class="title-container">
<h3 class="title">Uni Boot Admin 管理系统</h3>
<h3 class="title">{{ title }}</h3>
</div>

<el-form-item prop="username">
Expand Down Expand Up @@ -64,6 +64,8 @@
</template>

<script>
import { title } from '@/settings'
export default {
name: 'Login',
data() {
Expand All @@ -82,6 +84,7 @@ export default {
}
}
return {
title,
loginForm: {
username: 'admin',
password: '12345'
Expand Down

0 comments on commit 66bb369

Please sign in to comment.