diff --git a/src/utils/myMixins.js b/src/utils/myMixins.js index b998a414..d40d7d41 100644 --- a/src/utils/myMixins.js +++ b/src/utils/myMixins.js @@ -1,12 +1,17 @@ import { getLog } from "@/api/order" + +let _setLogTimer = null + export const myMixins = { data() { return { } }, methods: { - async setLogHandler(data) { - await getLog(data) + setLogHandler(data) { + if (_setLogTimer) return + _setLogTimer = setTimeout(() => { _setLogTimer = null }, 1000) + getLog(data) }, showFun() { if( localStorage.getItem('infoVerify') == 8 || localStorage.getItem('infoVerify') == 12 ) {