linweizeng 3 жил өмнө
parent
commit
c6e97abdc7

+ 11 - 12
src/layout/header-aside/layout.vue

@@ -241,13 +241,13 @@ export default {
  mounted() {
    /* window.performance.navigation.type == 1 &&  */
     if (this.$route.name == 'dashboard') {
-            this.sysName='首页'
+            this.sysName = '首页'
           }
   },
   computed: {
 
     ...mapState('ibps', {
-      //sysName:state=>state.menu.sysName,
+      // sysName:state=>state.menu.sysName,
       keepAlive: state => state.page.keepAlive,
       grayActive: state => state.gray.active,
       transitionActive: state => state.transition.active,
@@ -266,10 +266,10 @@ export default {
     /**
      * @description 用来实现带参路由的缓存
      */
-    sysName(){
+    sysName() {
       if (this.$route.name == 'dashboard') {
           return '首页'
-      }else{
+      } else {
         return ''
       }
     },
@@ -307,13 +307,13 @@ export default {
       'activeName'
     ]),
     /* 跳转首页*/
-    goToMain(){
-      //this.sysName = "首页"
+    goToMain() {
+      // this.sysName = "首页"
       this.$router.push({
-      			name:'dashboard'
+        name: 'dashboard'
       })
     },
-    pageChange(){
+    pageChange() {
       this.sysName = ''
     },
     /**
@@ -335,13 +335,12 @@ export default {
 // 注册主题
 @import '~@/assets/styles/theme/register.scss';
 .jbd-sys-title{
-  //  background: linear-gradient(to top,#a73a3a,#f35858);
-  // background: linear-gradient(to top,#1894d0,#7dbfdf);
-  background: #1894d0;
+  background: linear-gradient(to top,rgb(26, 149, 212),#7dbfdf);
+  // background: #1894d0;
   height: 40px;
   line-height: 40px;
   font-size: 18px;
-   color: #FFF;
+  color: #FFF;
   text-align: center;
 }
 .jbd-sys-title-cont{