PC 7 months ago
parent
commit
950f5ea860
2 changed files with 5 additions and 4 deletions
  1. 4 3
      src/components/layouts/header.vue
  2. 1 1
      src/page/login/index.vue

+ 4 - 3
src/components/layouts/header.vue

@@ -2,14 +2,14 @@
     <div class="layout_top">
         <div class="left">
             <img :src="logo_32" />
-            <div class="title">XX重点装备管理平台</div>
+            <div class="title">警用枪支定位管理系统</div>
         </div>
         <div class="right">
             <!-- <div class="title_menu">某某管理者</div>
             <img :src="down" /> -->
             <el-dropdown>
                 <span class="el-dropdown-link">
-                    某某管理者<i class="el-icon-arrow-down el-icon--right"></i>
+                    {{ userName }}<i class="el-icon-arrow-down el-icon--right"></i>
                 </span>
                 <el-dropdown-menu slot="dropdown">
                     <el-dropdown-item @click.native="logout">退出</el-dropdown-item>
@@ -26,7 +26,8 @@ export default {
     data() {
         return {
             logo_32: require('./img/logo_32.svg'),
-            down: require('./img/down.svg')
+            down: require('./img/down.svg'),
+            userName: JSON.parse(localStorage.getItem('saber-userInfo')).content.user_name,
         }
     },
     methods: {

+ 1 - 1
src/page/login/index.vue

@@ -34,7 +34,7 @@
         <div class="login-main">
           <h4 class="login-title">
             <!-- {{ $t('login.title') }}{{ website.title }} -->
-            XX重点装备管理平台
+            警用枪支定位管理系统
             <top-lang></top-lang>
           </h4>
           <userLogin v-if="activeName === 'user'"></userLogin>