修改readme.md
This commit is contained in:
@@ -7,3 +7,5 @@
|
|||||||
- 发布时,可动态配置CDN静态资源/切换新旧版本
|
- 发布时,可动态配置CDN静态资源/切换新旧版本
|
||||||
|
|
||||||
|
|
||||||
|
##
|
||||||
|
- 打包前修改 src/utils/httpRequest.js 中的 requestURl 为实际环境地址
|
||||||
@@ -64,7 +64,10 @@
|
|||||||
<el-form-item prop="captcha" v-if="isLogin">
|
<el-form-item prop="captcha" v-if="isLogin">
|
||||||
<el-row :gutter="20">
|
<el-row :gutter="20">
|
||||||
<el-col :span="14">
|
<el-col :span="14">
|
||||||
<el-input v-model.trim="dataForm.captcha" placeholder="验证码">
|
<el-input
|
||||||
|
v-model.trim="dataForm.captcha"
|
||||||
|
placeholder="验证码"
|
||||||
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</el-col>
|
</el-col>
|
||||||
<el-col :span="10" class="login-captcha">
|
<el-col :span="10" class="login-captcha">
|
||||||
@@ -230,7 +233,9 @@ export default {
|
|||||||
this.$refs["dataForm"].validate((valid) => {
|
this.$refs["dataForm"].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
this.$http({
|
this.$http({
|
||||||
url: this.$http.adornUrl("sys/registered?msg=" + this.dataForm.code),
|
url: this.$http.adornUrl(
|
||||||
|
"sys/registered?msg=" + this.dataForm.code
|
||||||
|
),
|
||||||
method: "post",
|
method: "post",
|
||||||
data: this.$http.adornData({
|
data: this.$http.adornData({
|
||||||
mobile: this.dataForm.mobile,
|
mobile: this.dataForm.mobile,
|
||||||
@@ -241,7 +246,7 @@ export default {
|
|||||||
}).then(({ data }) => {
|
}).then(({ data }) => {
|
||||||
if (data && data.code === 0) {
|
if (data && data.code === 0) {
|
||||||
this.$message.success("注册成功,请登录");
|
this.$message.success("注册成功,请登录");
|
||||||
this.isLogin=true
|
this.isLogin = true;
|
||||||
// this.$cookie.set("token", data.token);
|
// this.$cookie.set("token", data.token);
|
||||||
// this.$router.replace({ name: "home" });
|
// this.$router.replace({ name: "home" });
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user