npm install sreenfull --save
import screenfull from ‘screenfull’ <div @click="fullscreen"> 切换全屏 </div> // 全屏切换 fullscreen() { screenfull.toggle(); }