|
@@ -21,12 +21,16 @@ import { ref, getCurrentInstance } from "vue"
|
|
|
import $ from 'jquery'
|
|
|
import LayoutHeader from '@/components/LayoutHeader.vue';
|
|
|
const { proxy } = getCurrentInstance()
|
|
|
-// const elMainRef = ref()
|
|
|
+
|
|
|
function beforeEnter() {
|
|
|
+ // 切换页面时不出现滚动条
|
|
|
$('#app').addClass('hide-scrollbar')
|
|
|
+ setTimeout(() => {
|
|
|
+ $('#app').removeClass('hide-scrollbar')
|
|
|
+ }, 1000)
|
|
|
}
|
|
|
function afterLeave() {
|
|
|
- $('#app').removeClass('hide-scrollbar')
|
|
|
+ // $('#app').removeClass('hide-scrollbar')
|
|
|
}
|
|
|
</script>
|
|
|
|