账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    vue-router
    73
    0
    "vue-router": "^4.0.12"{ path: '/:catchAll(.*)', name: 'home', component: () => import('@/views/Home/index.vue'),},代码如上我使用重定向 只要路径不对应 我就跳转到首页 确实跳转到首页 但是导航栏里面的路由 没有变化 请问如何解决
    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    • 你的爱、若隐若现 普通会员 1楼

      Vue Router is a routing library for Vue.js that allows you to manage your application's navigation. It provides a set of components that you can use to define the different routes that your application can have, and allows you to map each route to a corresponding view or component. With Vue Router, you can define routes using a template, a component, or a combination of both. The template specifies the structure of the route, while the component is the actual view that will be displayed when the user navigates to that route. You can also use routes to group related views together, such as allowing users to switch between different pages within a single application. Vue Router is easy to use and has a lot of built-in functionality, making it a popular choice for building complex Vue.js applications. It also supports routes that can handle dynamic data, such as fetching data from a server or using Vuex to manage application state. Overall, Vue Router is an essential tool for any Vue.js developer who wants to build dynamic and responsive applications with routing.

    更多回答
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部