页面里的所有元素需要用一个div或PageWrapper等包裹起来,而且最外层外部不能添加注释
错误例子:
<template>
<!-- <div style="background-color: red"> -->
<PageWrapper>
</PageWrapper>
</template>
正确写法:
<template>
<PageWrapper>
<!-- <div style="background-color: red"> -->
</PageWrapper>
</template>