|
@@ -40,7 +40,7 @@ import { setLogout } from '@/state';
|
|
|
import { storage } from '@/helpers/storage';
|
|
|
import { ACCESS_TOKEN } from '@/store/mutation-types';
|
|
|
import MWxTip from '@/components/m-wx-tip';
|
|
|
-import { usePageVisibility, useEventListener } from '@vant/use';
|
|
|
+import { usePageVisibility, useEventListener, useWindowSize } from '@vant/use';
|
|
|
import videoBg from './images/video-bg.png';
|
|
|
import LoginChangeModel from './login-change-model';
|
|
|
import MSticky from '@/components/m-sticky';
|
|
@@ -326,7 +326,6 @@ export default defineComponent({
|
|
|
};
|
|
|
// 滚动事件
|
|
|
const cleanScrollEvent = useEventListener('scroll', () => {
|
|
|
- creationHeight.value = window.innerHeight
|
|
|
const height =
|
|
|
window.scrollY ||
|
|
|
document.documentElement.scrollTop
|
|
@@ -424,12 +423,17 @@ export default defineComponent({
|
|
|
updateProgressStaff
|
|
|
}
|
|
|
}
|
|
|
+ function setFullHeight(){
|
|
|
+ creationHeight.value = window.innerHeight
|
|
|
+ }
|
|
|
onMounted(async () => {
|
|
|
__init();
|
|
|
+ window.addEventListener('resize', setFullHeight)
|
|
|
});
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
cleanScrollEvent()
|
|
|
+ window.removeEventListener('resize', setFullHeight)
|
|
|
});
|
|
|
|
|
|
onBeforeRouteUpdate((to: any) => {
|