Commit 6d366830a5c84addc0fc30a7672bcafbc01532c8

Authored by monkeyhouyi
1 parent 6143a919

系统名称-E蓉管理

src/views/Login.vue
1 <template> 1 <template>
2 <div class="Login"> 2 <div class="Login">
3 <div class="login-wrap"> 3 <div class="login-wrap">
4 - <div class="login-wrap_header">内部系统</div> 4 + <div class="login-wrap_header">E蓉管理</div>
5 <div class="login-wrap_container"> 5 <div class="login-wrap_container">
6 <div class="welcome-text">欢迎登录!</div> 6 <div class="welcome-text">欢迎登录!</div>
7 <el-form 7 <el-form
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 <!-- 忘记密码? --> 33 <!-- 忘记密码? -->
34 </div> 34 </div>
35 </div> 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 <!-- <div class="login-button" @click="toHome"> 37 <!-- <div class="login-button" @click="toHome">
38 {{ loading ? "登录中。。。" : "登录" }} 38 {{ loading ? "登录中。。。" : "登录" }}
39 </div> --> 39 </div> -->
src/views/homePage/components/Header.vue
@@ -3,7 +3,7 @@ @@ -3,7 +3,7 @@
3 <div class="slogin"> 3 <div class="slogin">
4 <!-- 举旗帜聚民心、防风险保安全、强治理惠民生、 增动能促发展、谋合作图共赢 --> 4 <!-- 举旗帜聚民心、防风险保安全、强治理惠民生、 增动能促发展、谋合作图共赢 -->
5 </div> 5 </div>
6 - <div class="title">内部系统</div> 6 + <div class="title">E蓉管理</div>
7 <div class="user"> 7 <div class="user">
8 <div class="head"> 8 <div class="head">
9 <el-image :src="avatar" fit="cover"></el-image> 9 <el-image :src="avatar" fit="cover"></el-image>
src/views/homePage/components/Menu.vue
@@ -51,7 +51,7 @@ export default { @@ -51,7 +51,7 @@ export default {
51 }; 51 };
52 }, 52 },
53 mounted() { 53 mounted() {
54 - // 显示"内部系统PC权限"下的页面 54 + // 显示"E蓉管理PC权限"下的页面
55 let meun = this.$store.state.user.menuList.find( 55 let meun = this.$store.state.user.menuList.find(
56 (v) => v.id == "582459649622541573" 56 (v) => v.id == "582459649622541573"
57 ).children; 57 ).children;
vue.config.js
@@ -4,6 +4,8 @@ function resolve(dir) { @@ -4,6 +4,8 @@ function resolve(dir) {
4 return path.join(__dirname, dir) 4 return path.join(__dirname, dir)
5 } 5 }
6 const CompressionPlugin = require('compression-webpack-plugin') 6 const CompressionPlugin = require('compression-webpack-plugin')
  7 +const name = 'E蓉管理' // page title
  8 +
7 9
8 module.exports = defineConfig({ 10 module.exports = defineConfig({
9 11
@@ -31,7 +33,7 @@ module.exports = defineConfig({ @@ -31,7 +33,7 @@ module.exports = defineConfig({
31 }, 33 },
32 }, 34 },
33 configureWebpack: { 35 configureWebpack: {
34 - name: '属地', 36 + name: name,
35 resolve: { 37 resolve: {
36 alias: { 38 alias: {
37 '@': resolve('src'), 39 '@': resolve('src'),
@@ -58,6 +60,11 @@ module.exports = defineConfig({ @@ -58,6 +60,11 @@ module.exports = defineConfig({
58 60
59 // when there are many pages, it will cause too many meaningless requests 61 // when there are many pages, it will cause too many meaningless requests
60 config.plugins.delete('prefetch') 62 config.plugins.delete('prefetch')
  63 + config.plugin('html')
  64 + .tap(args => {
  65 + args[0].title = name;
  66 + return args;
  67 + })
61 68
62 // set svg-sprite-loader 69 // set svg-sprite-loader
63 config.module 70 config.module