Browse Source

Signed-off-by: Caner <5658514@qq.com>

Caner 3 years ago
parent
commit
3e32bfdffb

+ 2 - 2
src/pages/views/chart/index.vue

@@ -397,9 +397,9 @@ onMounted(() => {
   charts.setOption(pressureOption)
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
-  if(isIOS || isAndroid){
+  if (isIOS || isAndroid) {
     alert('建议用电脑打开')
-  }     
+  }
 })
 
 onUnmounted(() => {

+ 3 - 3
src/pages/views/edit/index.vue

@@ -4,14 +4,14 @@
   </div>
 </template>
 <script lang="ts" setup>
-import { onMounted } from "vue";
+import { onMounted } from 'vue'
 import RichEdit from '@/components/editeDemo.vue'
 onMounted(() => {
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
-  if(isIOS || isAndroid){
+  if (isIOS || isAndroid) {
     alert('建议用电脑打开')
-  }  
+  }
 })
 </script>
 <style lang="less" scoped>

+ 3 - 3
src/pages/views/fly/index.vue

@@ -5,7 +5,7 @@
 </template>
 <script lang="ts" setup>
 import Fly from './components/FlyMoitor.vue'
-import { ref, onUnmounted , onMounted} from 'vue'
+import { ref, onUnmounted, onMounted } from 'vue'
 const flydb = ref([ { x: 0, y: 0 }, { x: 0, y: 0 } ])
 
 const randomFlyDb = () => [
@@ -20,9 +20,9 @@ const timer = setInterval(() => {
 onMounted(() => {
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
-  if(isIOS || isAndroid){
+  if (isIOS || isAndroid) {
     alert('建议用电脑打开')
-  }  
+  }
 })
 
 onUnmounted(() => {

+ 2 - 2
src/pages/views/index/index.vue

@@ -115,9 +115,9 @@ onMounted(() => {
   })
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
-  if(isIOS || isAndroid){
+  if (isIOS || isAndroid) {
     alert('建议用电脑打开')
-  }  
+  }
 })
 
 onUnmounted(() => {

+ 2 - 2
src/pages/views/move/index.vue

@@ -54,9 +54,9 @@ onMounted(() => {
   move.on(dom, callBack)
   const isIOS = !!navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)
   const isAndroid = navigator.userAgent.includes('Android') || navigator.userAgent.includes('Linux') // g
-  if(isIOS || isAndroid){
+  if (isIOS || isAndroid) {
     alert('建议用电脑打开')
-  }     
+  }
 })
 </script>
 <style lang="less" scoped>