|
@@ -1,6 +1,6 @@
|
|
|
<script setup>
|
|
|
import { RouterView } from 'vue-router'
|
|
|
-import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
+// import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
|
|
|
// const checkVersion = () => {
|
|
|
// const oldVersion = localStorage.getItem('version')
|
|
@@ -20,17 +20,17 @@ import { ref, onMounted, onUnmounted } from 'vue'
|
|
|
// })
|
|
|
// }
|
|
|
|
|
|
-const timer = ref(null)
|
|
|
-onMounted(() => {
|
|
|
- console.log(1, 'import.meta.env', import.meta.env)
|
|
|
+// const timer = ref(null)
|
|
|
+// onMounted(() => {
|
|
|
+ // console.log(1, 'import.meta.env', import.meta.env)
|
|
|
// if (process.env.NODE_ENV === 'production') {
|
|
|
// if (timer.value) clearInterval(timer.value)
|
|
|
// timer.value = setInterval(() => { checkVersion() }, 3000)
|
|
|
// }
|
|
|
-})
|
|
|
-onUnmounted(() => {
|
|
|
- if (timer.value) clearInterval(timer.value)
|
|
|
-})
|
|
|
+// })
|
|
|
+// onUnmounted(() => {
|
|
|
+// if (timer.value) clearInterval(timer.value)
|
|
|
+// })
|
|
|
</script>
|
|
|
|
|
|
<template>
|