Skip to content

Commit

Permalink
修改没有输入用户名时,点击确认修改,没有检测输入值,仍然能修改用户名为空
Browse files Browse the repository at this point in the history
  • Loading branch information
catchme committed Feb 6, 2018
1 parent b231a26 commit f093408
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/page/profile/children/children/setusername.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
mounted(){
},
computed:{
...mapState([
Expand All @@ -56,23 +56,29 @@
this.earn=false;
this.bordercolor=true;
this.opacityall=false;
return false;
}else{
this.earn=true;
this.bordercolor=false;
this.opacityall=true;
return true;
}
},
resetName(){
let checkResult = this.inputThing();
if (!checkResult) {
return;
}
this.RETSET_NAME(this.inputValue);
this.$router.go(-1);
}
}
}
</script>

<style lang="scss" scoped>
@import 'src/style/mixin';
.rating_page{
position: absolute;
top: 0;
Expand Down

0 comments on commit f093408

Please sign in to comment.