摘要: 一、命名路由 由于router-link会被渲染会a标签,所以在router-link标签中添加target=‘_blank’即可在新窗口打开页面。 <router-link to='/home' target='_blank'></router-link> 二、编程式导航跳转 使用路由对象的res 阅读全文
posted @ 2020-11-09 17:41 小那 阅读(1616) 评论(0) 推荐(0) 编辑
摘要: 1、安装 npm install axios -S npm install qs -S 2、在main.js中导入 // 引入axios,并加到原型链中 import axios from 'axios'; Vue.prototype.$axios = axios; import QS from ' 阅读全文
posted @ 2020-11-09 14:30 小那 阅读(640) 评论(0) 推荐(0) 编辑