2025年8月20日

vue2-router路由相关

摘要: Vue 2 中通常使用 1、npm install vue-router@3.x 版本(与 Vue 2 适配)来实现路由功能,它能帮助你构建单页应用(SPA),实现不同组件之间的无刷新切换 2、基本路由配置(src/router/index.js) import Vue from 'vue' imp 阅读全文

posted @ 2025-08-20 18:17 Mc525 阅读(86) 评论(0) 推荐(0)

导航