Commit fe74b23e by wangzhihui

优化输入空格

1 parent c50865c5
...@@ -245,14 +245,13 @@ Page({ ...@@ -245,14 +245,13 @@ Page({
}) })
}, },
bindInput(e) { bindInput(e) {
console.log(e)
const { const {
item: { item: {
key, key,
} }
} = e.currentTarget.dataset } = e.currentTarget.dataset
this.setData({ this.setData({
[`formData.${key}`]: e.detail.value [`formData.${key}`]: e.detail.value.replace(/\s/g, '')
}) })
this.check() this.check()
}, },
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<image src="{{userInfo.headImgUrl}}" /> <image src="{{userInfo.headImgUrl}}" />
</block> </block>
<block wx:else> <block wx:else>
<glsx-image webp src="/mine/default-avatar.png"></glsx-image> <glsx-image webp src="/mine/avatar.png"></glsx-image>
</block> </block>
</view> </view>
<view class="info auth"> <view class="info auth">
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!