浏览代码

禁用页面内容选中操作

liling 2 月之前
父节点
当前提交
8dbbda4c7b
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 1 1
      src/pages/main/index.vue
  2. 4 0
      src/styles/main.css

+ 1 - 1
src/pages/main/index.vue

@@ -172,7 +172,7 @@ export default {
                 if(e=='signal websocket error'){
                     //服务器网络不通
                 }
-                modelLoadState={};
+                //modelLoadState={};
                 //currentTargetType.value='';
                 //4.[推荐]尝试重新连接
                 reconntimer = setTimeout(function () {

+ 4 - 0
src/styles/main.css

@@ -7,6 +7,10 @@
         overflow: hidden;
         background-color: #00556699;
         /*background-image: url('image/bg.jpeg');*/
+        user-select: none; /* 标准属性 */
+        -webkit-user-select: none; /* Safari */
+        -moz-user-select: none; /* Firefox */
+        -ms-user-select: none; /* IE/Edge */
     }
     thead tr{
         background-image: url('../assets/image/thead_bg.png');