diff --git a/public/yl.png b/public/yl.png
index b4daa1b..480c4e6 100644
Binary files a/public/yl.png and b/public/yl.png differ
diff --git a/src/utils/utils.js b/src/utils/utils.js
index cc4bdf9..f04c863 100644
--- a/src/utils/utils.js
+++ b/src/utils/utils.js
@@ -159,6 +159,25 @@ export function debounce(fn, wait) {
};
}
+/**
+ * 节流函数
+ * @param fn {Function} 需要节流的函数
+ * @param wait {number} 节流时间
+ * @returns {Function} 节流后的函数
+ */
+export function throttle(fn, wait) {
+ let lastTime = 0;
+ return function() {
+ const context = this;
+ const args = arguments;
+ const now = Date.now();
+ if (now - lastTime >= wait) {
+ fn.apply(context, args);
+ lastTime = now;
+ }
+ };
+}
+
/**
* 格式化时间
* @param type now:当前时间 endOfDay:当前时间的 23:59:59
diff --git a/src/views/Home/components/Market/Index.vue b/src/views/Home/components/Market/Index.vue
index 4f72497..af503c5 100644
--- a/src/views/Home/components/Market/Index.vue
+++ b/src/views/Home/components/Market/Index.vue
@@ -37,20 +37,25 @@
-
-更多模板期待您的探索-