瀏覽代碼

style: update some style

xiaoxian521 4 年之前
父節點
當前提交
762833e545
共有 3 個文件被更改,包括 11 次插入6 次删除
  1. 3 1
      src/layout/components/tag/tagsHook.ts
  2. 1 0
      src/views/editor/index.vue
  3. 7 5
      src/views/welcome.vue

+ 3 - 1
src/layout/components/tag/tagsHook.ts

@@ -77,7 +77,9 @@ export function useDynamicRoutesHook() {
     }
   };
   const routesLength = computed(() => {
-    return storageLocal.getItem("routesInStorage").length;
+    return storageLocal.getItem("routesInStorage")
+      ? storageLocal.getItem("routesInStorage").length
+      : 0;
   });
 
   return {

+ 1 - 0
src/views/editor/index.vue

@@ -48,5 +48,6 @@ export default {
 }
 :deep(.w-e-toolbar) {
   z-index: 999 !important;
+  position: static;
 }
 </style>

+ 7 - 5
src/views/welcome.vue

@@ -50,7 +50,7 @@ export default {
       nextTick(() => {
         initbrokenLine();
       });
-    }, 2000);
+    }, 500);
 
     let greetings = computed(() => {
       if (date.getHours() >= 0 && date.getHours() < 12) {
@@ -62,9 +62,10 @@ export default {
       }
     });
 
-    let initbrokenLine = (): any => {
-      // @ts-ignore
-      brokenLine = echarts.init(document.getElementById("brokenLine"));
+    function initbrokenLine() {
+      const lineRefDom = document.getElementById("brokenLine");
+      if (!lineRefDom) return;
+      brokenLine = echarts.init(lineRefDom);
       brokenLine.clear(); //清除旧画布 重新渲染
 
       echartsJson().then(({ info }) => {
@@ -175,7 +176,7 @@ export default {
           }
         });
       });
-    };
+    }
 
     const openDepot = (): void => {
       window.open("https://github.com/xiaoxian521/vue-pure-admin");
@@ -220,6 +221,7 @@ export default {
     height: 120px;
     background: #fff;
     padding: 20px;
+    border-bottom: 0.5px solid rgba($color: #ccc, $alpha: 0.3);
     .left-mark {
       display: flex;
       align-items: center;