38 lines
660 B
Vue
38 lines
660 B
Vue
<template>
|
|
<div class="DefaultLayout">
|
|
<nuxt />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { Vue, Component } from 'nuxt-property-decorator'
|
|
import '~/assets/speak'
|
|
|
|
@Component<DefaultLayout>({
|
|
mounted() {
|
|
if (process.env['NODE_ENV'] !== 'development') {
|
|
window.onbeforeunload = function (e: any) {
|
|
e.preventDefault()
|
|
e.returnValue = 'not returned'
|
|
}
|
|
}
|
|
},
|
|
})
|
|
export default class DefaultLayout extends Vue {}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
html,
|
|
body,
|
|
#__nuxt,
|
|
#__layout,
|
|
.DefaultLayout {
|
|
margin: 0;
|
|
padding: 0;
|
|
width: 100%;
|
|
height: 100%;
|
|
overflow: hidden;
|
|
overscroll-behavior-y: none;
|
|
}
|
|
</style>
|