1.vue发送短信逻辑
-
前端函数如下,js方法代码无需更改,前端代码逻辑在
components\common\lab_header.vue
-
只需要修改
components\axios_api\http.js
中调用的后端地址-
// axios.defaults.baseURL = "http://127.0.0.1:8000/" axios.defaults.baseURL = "http://192.168.56.100:8888/"
-
// 获取手机验证码
sendcode() {
// 0. 判断是否发送中
if (this.is_send) {
return
}
this.check_phone(