摘要: // 2.0 Vue.prototype.$http = () => {} // 3.0 const app = Vue.createApp({}) app.config.globalProperties.$http = () => {} 最常用的场景,在页面渲染前,通过http请求获取需要显示的数 阅读全文
posted @ 2020-10-30 15:15 Jade_g 阅读(14371) 评论(3) 推荐(1) 编辑