|
@@ -14,7 +14,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script setup>
|
|
|
-import { onMounted, ref, watch } from 'vue'
|
|
|
+import { onMounted, onUnmounted, ref, watch } from 'vue'
|
|
|
import guiView from './gui/guigui.vue'
|
|
|
import bookView from './gui/book.vue'
|
|
|
import queryApi from '~api/using/query'
|
|
@@ -107,6 +107,11 @@ const getDomStyle = (id) => {
|
|
|
return { width: 0, height: 0 }
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+//销毁
|
|
|
+onUnmounted(() => {
|
|
|
+ window.removeEventListener('resize', resizeEvent)
|
|
|
+})
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|