根据pc 还是移动使用不同页面 Posted on 2019-07-29 18:17 12345678910111213141516171819import Vue from 'vue'import Router from 'vue-router'import mobileMe from './mobile/me'import pcMe from './pc/me'Vue.use(Router)let route = []if (/Mobile|webOS|Jike/i.test(navigator.userAgent)) { route = [...mobileMe]} else { route = [...pcMe]}const router = new Router({ mode: 'history', routes: route})