摘要: 登陆按钮的方法 loginbtn () { // 预校验 this.$refs.loginRef.validate(async (valid) => { // console.log(valid) if (!valid) { return } // 数据解构 const { data: res } 阅读全文
posted @ 2020-10-10 16:26 张新钢 阅读(130) 评论(0) 推荐(0)
摘要: 主要在main.js入口文件中进行配置 // 发送数据需要axios import axios from 'axios' // 默认地址 axios.defaults.baseURL = 'http://127.0.0.1:8888/api/private/v1/' // 挂载请求地址 Vue.pr 阅读全文
posted @ 2020-10-10 15:45 张新钢 阅读(112) 评论(0) 推荐(0)
摘要: import { Message } from 'element-ui' // 挂载到$message上 Vue.prototype.$message = Message 阅读全文
posted @ 2020-10-10 15:41 张新钢 阅读(7950) 评论(0) 推荐(0)