Loading

随笔分类 -  前端

摘要:获取路由参数 import { useRouter } from 'vue-router'; const router = useRouter(); console.log(router.currentRoute.query); 设置路由参数 import { useRouter } from 'v 阅读全文
posted @ 2024-09-02 14:06 _小孟同学 阅读(792) 评论(0) 推荐(0)
摘要:在axios/index.js添加下面配置 axios.interceptors.request.use((config) => { if(config.method 'post') { config.headers={'Content-Type': 'text/plain'} } return c 阅读全文
posted @ 2022-02-25 14:51 _小孟同学 阅读(339) 评论(0) 推荐(0)