zhangwei 2 rokov pred
rodič
commit
bb4963b908

+ 5 - 5
src/view/content/tool-box/full.vue

@@ -19,10 +19,10 @@ import { onMounted, reactive, ref } from "vue";
 import { sendEventInfo } from "@/uilts/event";
 let state = reactive({
     status: '固定', // 全屏
-    dom_fixed: null,
     iframe_url: '',
     tweetId: ''
 })
+let dom_fixed = null
 
 window.addEventListener("onEvent", e => {
     let info = e.detail
@@ -50,11 +50,11 @@ const clickFull = () => {
     }
 }
 onMounted(() => {
-    state.dom_fixed = document.querySelector('#denet-tool-box-fixed')
+    dom_fixed = document.querySelector('#denet-tool-box-fixed')
 })
 
 const changeFull = () => {
-    state.dom_fixed.style.cssText = `
+    dom_fixed.style.cssText = `
     width:100%;
     height: 100%;
     position: fixed;
@@ -63,7 +63,7 @@ const changeFull = () => {
 }
 
 const changeFixed = () => {
-    state.dom_fixed.style.cssText = `
+    dom_fixed.style.cssText = `
     width: 505px;
     height: 544px;
     position: fixed;
@@ -72,7 +72,7 @@ const changeFixed = () => {
 }
 
 const clickClose = () => {
-    state.dom_fixed.style.display = 'none'
+    dom_fixed.style.display = 'none'
     sendClose()
 
 }

+ 0 - 1
src/view/content/tool-box/index.vue

@@ -5,7 +5,6 @@
             <div v-show="state.show_btn && state.status == ''">
                 <img :src="require('@/assets/img/icon-fixed.png')" alt class="fixed" @click.stop="clickFixed" />
                 <img :src="require('@/assets/img/icon-full.png')" alt class="full" @click.stop="clickFull" />
-                <!-- <img :src="require('@/assets/img/icon-close.png')" alt class="full" @click="clickFull" /> -->
             </div>
         </div>
         <div class="content" v-if="pre_view">