Commit 6d366830a5c84addc0fc30a7672bcafbc01532c8
1 parent
6143a919
系统名称-E蓉管理
Showing
4 changed files
with
12 additions
and
5 deletions
src/views/Login.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="Login"> |
| 3 | 3 | <div class="login-wrap"> |
| 4 | - <div class="login-wrap_header">内部系统</div> | |
| 4 | + <div class="login-wrap_header">E蓉管理</div> | |
| 5 | 5 | <div class="login-wrap_container"> |
| 6 | 6 | <div class="welcome-text">欢迎登录!</div> |
| 7 | 7 | <el-form |
| ... | ... | @@ -33,7 +33,7 @@ |
| 33 | 33 | <!-- 忘记密码? --> |
| 34 | 34 | </div> |
| 35 | 35 | </div> |
| 36 | - <el-button class="login-button" @click="toHome" :loading="loading">登录</el-button> | |
| 36 | + <el-button class="login-button" @click.native="toHome" :loading="loading">登录</el-button> | |
| 37 | 37 | <!-- <div class="login-button" @click="toHome"> |
| 38 | 38 | {{ loading ? "登录中。。。" : "登录" }} |
| 39 | 39 | </div> --> | ... | ... |
src/views/homePage/components/Header.vue
src/views/homePage/components/Menu.vue
vue.config.js
| ... | ... | @@ -4,6 +4,8 @@ function resolve(dir) { |
| 4 | 4 | return path.join(__dirname, dir) |
| 5 | 5 | } |
| 6 | 6 | const CompressionPlugin = require('compression-webpack-plugin') |
| 7 | +const name = 'E蓉管理' // page title | |
| 8 | + | |
| 7 | 9 | |
| 8 | 10 | module.exports = defineConfig({ |
| 9 | 11 | |
| ... | ... | @@ -31,7 +33,7 @@ module.exports = defineConfig({ |
| 31 | 33 | }, |
| 32 | 34 | }, |
| 33 | 35 | configureWebpack: { |
| 34 | - name: '属地', | |
| 36 | + name: name, | |
| 35 | 37 | resolve: { |
| 36 | 38 | alias: { |
| 37 | 39 | '@': resolve('src'), |
| ... | ... | @@ -58,6 +60,11 @@ module.exports = defineConfig({ |
| 58 | 60 | |
| 59 | 61 | // when there are many pages, it will cause too many meaningless requests |
| 60 | 62 | config.plugins.delete('prefetch') |
| 63 | + config.plugin('html') | |
| 64 | + .tap(args => { | |
| 65 | + args[0].title = name; | |
| 66 | + return args; | |
| 67 | + }) | |
| 61 | 68 | |
| 62 | 69 | // set svg-sprite-loader |
| 63 | 70 | config.module | ... | ... |