|
@@ -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()
|
|
|
|
|
|
}
|