From c7bc3eb18e1fda4254ca0195e2133d2ed978de11 Mon Sep 17 00:00:00 2001
From: china <527956374@qq.com>
Date: 星期四, 11 五月 2023 17:48:48 +0800
Subject: [PATCH] 样式调整

---
 src/layout/index.vue |   43 ++++++++++++++++++++++++++++++++++++-------
 1 files changed, 36 insertions(+), 7 deletions(-)

diff --git a/src/layout/index.vue b/src/layout/index.vue
index 0a47150..b65649c 100644
--- a/src/layout/index.vue
+++ b/src/layout/index.vue
@@ -52,8 +52,37 @@
     },
     variables() {
       return variables;
+    },
+
+    // 2023-04-17锛屽畾涔夋帴鏀秝ebsocket娑堟伅
+    getWsMsg (){
+      // return this.$store.websocket.state.webSocketMsg;
+      return this.$store.state.user.webSocketMsg;
     }
   },
+  // 2023-04-17
+  watch: {
+    getWsMsg:{
+      handler: function(newVal) {
+        // console.log(newVal)
+        // alert('鎺ユ敹鍒皐ebSocket鎺ㄩ��:'+ newVal);
+        this.$notify({
+          title: '鏂版秷鎭彁閱掞細',  //鏍囬
+          // message: '杩欐槸涓�鏉′笉浼氳嚜鍔ㄥ叧闂殑娑堟伅',  //鍐呭
+          duration: 0,  //璁剧疆寮规娑堝け浜嬩欢
+          position:'bottom-right',  // 璁剧疆寮规鍦ㄥ睆骞曠殑鍝釜瑙掑脊鍑猴紙鍙兘璁剧疆4涓锛�
+          type: 'info',  //缁欐爣棰樺墠鍔犱竴涓皬鍥炬爣
+          offset: 100,  //鍋忕Щ閲忥細璺濈鍥涗釜瑙掔殑鍋忕Щ绋嬪害锛堥粯璁ゅ亸绉讳簡16px锛�
+          dangerouslyUseHTMLString: true,  //鏄惁鏀寔寮瑰嚭妗嗗唴浼犲叆 HTML 鐗囨
+          message: '<strong>杩欐槸 <i>HTML</i> 鐗囨</strong>' + newVal,   //寮�鍚悗锛岃繖閲屽彲浠ュ啓html
+          showClose: true,  //闅愯棌鍏抽棴鎸夐挳锛堝彸涓婅鐨剎  榛樿涓簍rue锛屾樉绀猴級
+          onClose() {console.log('鍏抽棴鍟�', event)},  // 鎵嬪姩鍏抽棴鏃剁殑鍥炶皟鍑芥暟
+        });
+        this.$store.state.app.tts.speak("鏈夋柊娑堟伅鎻愰啋锛岃鐐瑰嚮鏌ョ湅");
+      }
+    }
+  },
+
   methods: {
     handleClickOutside() {
       this.$store.dispatch('app/closeSideBar', { withoutAnimation: false })
@@ -130,20 +159,20 @@
     display: flex;
   }
 
-  .base-container {
+  .app-container {
     /*50 = navbar  */
     flex: 1;
     height: calc(100vh - 198px);
     border-radius:10px;
     overflow: auto;
-    scrollbar-width: none; /* Firefox */
-    -ms-overflow-style: none; /* IE 10+ */
-    &::-webkit-scrollbar {
-      display: none; /* Chrome Safari */
-    }
+    //scrollbar-width: none; /* Firefox */
+    //-ms-overflow-style: none; /* IE 10+ */
+    //&::-webkit-scrollbar {
+    //  display: none; /* Chrome Safari */
+    //}
     .box-card{
       .el-card__body{
-        padding-top: 0;
+        //padding-top: 0;
         .el-form-item--small.el-form-item{
           margin-top: 20px;
           margin-bottom: 0;

--
Gitblit v1.9.1