From 722dbde665a8e335bccaa9d984cd02eb22333e54 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Sat, 05 Mar 2022 17:49:13 +0800
Subject: [PATCH] +新增标签,可编辑,可加图片

---
 src/App.vue |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/App.vue b/src/App.vue
index 1ae163c..3b2336b 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,5 +1,5 @@
 <template>
-  <div id="app">
+  <div id="app" :class="{ cantdoit: cantdoits }">
     <router-view></router-view>
   </div>
 </template>
@@ -12,6 +12,7 @@
     return {
       //   consoles: 1,
       //   consoles1: 1,
+      cantdoits: false,
     };
   },
   mounted() {
@@ -61,6 +62,7 @@
     //     JSON.stringify(d)
     // );
     if (this._isMobile()) {
+      this.cantdoits = true;
       // 手机端
       this.$router.replace("/mobileLayout");
 
@@ -156,4 +158,12 @@
   width: 100%;
   height: 100%;
 }
+.cantdoit * {
+  -webkit-touch-callout: none !important; /*系统默认菜单被禁用*/
+  -webkit-user-select: none !important; /*webkit浏览器*/
+  -khtml-user-select: none !important; /*早期浏览器*/
+  -moz-user-select: none !important; /*火狐*/
+  -ms-user-select: none !important; /*IE10*/
+  user-select: none !important;
+}
 </style>

--
Gitblit v1.9.3