Commit a9f0434a by 张立顺

fix bug修复

1 parent 32efc641
......@@ -20,7 +20,7 @@ import eventbus from './utils/eventbus'
import api from './api/api'
import { Version } from 'glsx-common-sdk'
import { areaList } from '@vant/area-data' //预加载省市区
// 将 api.reNoSignIn() 函数包装为防抖函数
// 将 api.reNoSignIn() 函数包装为节流函数
const debouncedReNoSignIn = debounce(function (noSignInUuid, that) {
console.log('debouncedReNoSignIn2222');
api.reNoSignIn({
......@@ -37,7 +37,7 @@ const debouncedReNoSignIn = debounce(function (noSignInUuid, that) {
that.login(false)
}
})
}, 5000); // 设置防抖时间为 5 秒
}, 0); // 设置防抖时间为 5 秒
// 定义一个防抖函数
function debounce(func, timeout) {
let timer;
......
......@@ -41,6 +41,9 @@ Component({
// init()
this.audioInit()
},
detached() {
bgMusic.destroy()
}
},
/**
* 组件的方法列表
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!