添加刷新实名状态的防抖,immediate=true

This commit is contained in:
WindowBird 2025-09-11 10:58:07 +08:00
parent fcea02505e
commit f44d76a7a2

View File

@ -29,7 +29,7 @@
<!-- <text>进入人脸识别</text> --> <!-- <text>进入人脸识别</text> -->
<text>提交</text> <text>提交</text>
</view> </view>
<view v-if="isRefresh" class="refresh" @click="getshuaxin"> <view v-if="isRefresh" class="refresh" @click="toGetshuaxin">
<text>刷新实名状态</text> <text>刷新实名状态</text>
</view> </view>
</view> </view>
@ -72,6 +72,9 @@ export default {
this.smflag = true this.smflag = true
}, },
methods: { methods: {
toGetshuaxin() {
uni.$uv.debounce(this.getshuaxin, 2000, true)
},
// //
getshuaxin() { getshuaxin() {
refreshRealName().then(res => { refreshRealName().then(res => {