05 2022 档案

摘要:request.js import axios from 'axios' //引入// import { getToken } from '@/utils/token'// import { Toast } from 'vant'; //此处根据跨域配置 let baseURL = '/api' / 阅读全文
posted @ 2022-05-31 17:00 莫小非 阅读(1024) 评论(0) 推荐(0) 编辑
摘要:1. 代码: base.js class Base { constructor() { this.baseRestUrl = '服务器地址'; } request(params, auth = true) { // if (auth && !wx.getStorageSync('userid'))  阅读全文
posted @ 2022-05-31 16:51 莫小非 阅读(172) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示