uniapp全局請求插件luch-request的使用

首先安裝luch-request ,我是用插件中心直接導入,而後根目錄下utils下放插件luch-requestweb 根據文檔在main.js裏建立實例api //引入全局請求插件 import { http,api } from '@/config/common.js' // 全局掛載引入,配置相關在該index.js文件裏修改 Vue.prototype.$http = http Vue.
相關文章
相關標籤/搜索