zl程序教程

您现在的位置是:首页 >  前端

当前栏目

vue项目路由不跳转的问题

Vue路由项目 跳转 问题
2023-09-14 09:04:07 时间

安装了路由模块后没有跳转。

解决:

需要做3件事:

1,配置main.js

2,配置index.js

3,在APP.vue里面加入<router-view> (这个一定要记住)

 

<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>