Skip to content
This repository has been archived by the owner on Nov 15, 2018. It is now read-only.

Commit

Permalink
fix(认证): 优化重填表单的认证体验(图像加载部分)
Browse files Browse the repository at this point in the history
  • Loading branch information
mutoe committed Jul 11, 2018
1 parent 8e585be commit 78812cf
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/page/profile/Certificate.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ export default {
*/
type: {
get() {
return this.$route.query.type || "user";
},
return this.$route.query.type || "user";
},
set(val) {
const { path, query } = this.$route;
query.type = val;
Expand Down Expand Up @@ -277,11 +277,11 @@ export default {
},
poster1() {
const id = this.fields.files[0];
return { id, src: `${this.$http.defaults.baseURL}/files/${id}` };
return { id, src: `${this.$http.defaults.baseURL}/files/${id}?w=600` };
},
poster2() {
const id = this.fields.files[1];
return { id, src: `${this.$http.defaults.baseURL}/files/${id}` };
return { id, src: `${this.$http.defaults.baseURL}/files/${id}?w=600` };
}
},
watch: {
Expand Down Expand Up @@ -312,8 +312,8 @@ export default {
if (this.status === 0) {
api.postCertification(this.formData).then(() => {
this.$Message.success("提交成功,请等待审核");
this.goBack();
});
this.goBack();
});
} else {
api.patchCertification(this.formData).then(() => {
this.$Message.success("提交成功,请等待审核");
Expand Down

0 comments on commit 78812cf

Please sign in to comment.