摘要: async onConfirm() { this.$toast.loading({ message: '保存中...', forbidClick: true, // 禁止背景点击 duration: 0 // 持续展示 }) try { const localGender = this.localG 阅读全文
posted @ 2020-10-11 15:53 缔造cool 阅读(2227) 评论(0) 推荐(0)
摘要: // 引入axios import axios from 'axios' // 基本路径 axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/' // 挂载 Vue.prototype.$http = axios axios. 阅读全文
posted @ 2020-10-11 09:59 缔造cool 阅读(101) 评论(0) 推荐(0)
摘要: import JSONBig from 'json-bigint' //json-binint插件可以处理js有效数字超出问题 const request = axios.create({ baseURL: 'http://ttapi.research.itcast.cn/', // 基础路径 // 阅读全文
posted @ 2020-10-11 09:55 缔造cool 阅读(4483) 评论(0) 推荐(0)