vue识别移动端或者Pc,更自由的跳转
在index.html中head标签内插入
<script type="text/javascript">
if(/Android|webOS| iPhone | iPad | iPod |BlackBerry|opera mini|opera mobile|appleWebkit.*mobile|mobile/i.test(
navigator.userAgent)) {
window.location.href = "移动端地址";
}
</script>