开放平台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415
  1. export default ({
  2. app
  3. }) => {
  4. app.router.beforeEach((to, from, next) => {
  5. console.log(to.path)
  6. if (to.path === '/domain' || to.path === '/domain/control' || to.path === '/domain/' || to.path === '/domain/control/') {
  7. next('/domain/control/myApp')
  8. return
  9. }
  10. next()
  11. })
  12. }