添加刷新实名状态的防抖,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>
</view>
<view v-if="isRefresh" class="refresh" @click="getshuaxin">
<view v-if="isRefresh" class="refresh" @click="toGetshuaxin">
<text>刷新实名状态</text>
</view>
</view>
@ -72,6 +72,9 @@ export default {
this.smflag = true
},
methods: {
toGetshuaxin() {
uni.$uv.debounce(this.getshuaxin, 2000, true)
},
//
getshuaxin() {
refreshRealName().then(res => {