Commit a9f0434a by 张立顺

fix bug修复

1 parent 32efc641
...@@ -20,7 +20,7 @@ import eventbus from './utils/eventbus' ...@@ -20,7 +20,7 @@ import eventbus from './utils/eventbus'
import api from './api/api' import api from './api/api'
import { Version } from 'glsx-common-sdk' import { Version } from 'glsx-common-sdk'
import { areaList } from '@vant/area-data' //预加载省市区 import { areaList } from '@vant/area-data' //预加载省市区
// 将 api.reNoSignIn() 函数包装为防抖函数 // 将 api.reNoSignIn() 函数包装为节流函数
const debouncedReNoSignIn = debounce(function (noSignInUuid, that) { const debouncedReNoSignIn = debounce(function (noSignInUuid, that) {
console.log('debouncedReNoSignIn2222'); console.log('debouncedReNoSignIn2222');
api.reNoSignIn({ api.reNoSignIn({
...@@ -37,7 +37,7 @@ const debouncedReNoSignIn = debounce(function (noSignInUuid, that) { ...@@ -37,7 +37,7 @@ const debouncedReNoSignIn = debounce(function (noSignInUuid, that) {
that.login(false) that.login(false)
} }
}) })
}, 5000); // 设置防抖时间为 5 秒 }, 0); // 设置防抖时间为 5 秒
// 定义一个防抖函数 // 定义一个防抖函数
function debounce(func, timeout) { function debounce(func, timeout) {
let timer; let timer;
......
...@@ -41,6 +41,9 @@ Component({ ...@@ -41,6 +41,9 @@ Component({
// init() // init()
this.audioInit() 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!