Skip to content

Commit f093408

Browse files
author
catchme
committed
修改没有输入用户名时,点击确认修改,没有检测输入值,仍然能修改用户名为空
1 parent b231a26 commit f093408

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

src/page/profile/children/children/setusername.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
4040
},
4141
mounted(){
42-
42+
4343
},
4444
computed:{
4545
...mapState([
@@ -56,23 +56,29 @@
5656
this.earn=false;
5757
this.bordercolor=true;
5858
this.opacityall=false;
59+
return false;
5960
}else{
6061
this.earn=true;
6162
this.bordercolor=false;
6263
this.opacityall=true;
64+
return true;
6365
}
6466
},
6567
resetName(){
68+
let checkResult = this.inputThing();
69+
if (!checkResult) {
70+
return;
71+
}
6672
this.RETSET_NAME(this.inputValue);
6773
this.$router.go(-1);
6874
}
6975
}
7076
}
7177
</script>
72-
78+
7379
<style lang="scss" scoped>
7480
@import 'src/style/mixin';
75-
81+
7682
.rating_page{
7783
position: absolute;
7884
top: 0;

0 commit comments

Comments
 (0)