摘要: 之前的代码 this 为undefined methods:{ loadExaminationList:async ()=>{ //your code } } 改动箭头函数为function methods:{ loadExaminationList:async function(){ //your 阅读全文
posted @ 2021-06-14 13:01 HumorChen99 阅读(36) 评论(0) 推荐(0) 编辑
摘要: src目录下创建router.js import Vue from "vue"; import VueRouter from "vue-router"; import ExaminationList from "@/components/examination/ExaminationList"; i 阅读全文
posted @ 2021-06-14 12:22 HumorChen99 阅读(13) 评论(0) 推荐(0) 编辑
摘要: 安装axios npm install axios 代理方式 项目根目录下创建vue.config.js module.exports = { devServer: { proxy: 'http://localhost:9000' } } 测试代码 <template> <div id="app"> 阅读全文
posted @ 2021-06-14 12:03 HumorChen99 阅读(0) 评论(0) 推荐(0) 编辑