diff --git a/src/views/Home/components/Market/Index.vue b/src/views/Home/components/Market/Index.vue index 61aa38f..da0e4b2 100644 --- a/src/views/Home/components/Market/Index.vue +++ b/src/views/Home/components/Market/Index.vue @@ -73,7 +73,6 @@ let loadDataSingle = false; */ watch(searchValue, (value) => { !value && (keyword = ''); - searchParm.index = 1; }); const getTableList = async () => { @@ -128,7 +127,9 @@ const getMarketInfo = async (item: string | number, title?: string) => { * @param keyword 搜索关键词 */ function fetchTemplate() { + // 当点击搜索的时候, 重置当前的参数数据 keyword = searchValue.value; + searchParm.index = 1; getMarketInfo(marketIndex.value); }