tanxue 1 день назад
Родитель
Сommit
47cb0ee18d
1 измененных файлов с 8 добавлено и 5 удалено
  1. 8 5
      pages/chanpinZiliao/index.vue

+ 8 - 5
pages/chanpinZiliao/index.vue

@@ -36,7 +36,9 @@ import ezyActiveVue from "@/components/ezyActive/ezyActive.vue";
 import ShuXueList  from "./shuxue/sxList.vue"
 import YingYuList  from "./yingyu/yyList.vue"
 import YuWenList  from "./yuwen/ywList.vue"
+import {useSelectDateForUpdate} from "@/utils/common";
 let currentTabIndex = ref(2);
+const {isNowDate} = useSelectDateForUpdate('ziliaoDate')
 const data = reactive({
 	list:[
 	  { key: 'shuxue', label: '数学' },
@@ -86,11 +88,12 @@ function getFormatData(data) {
 onShow(() => {
   currentTabIndex.value = 2;
   data.chanpinActiveSelect = 'shuxue'
-  // 缺少功能 每日刷新
-  /* if (getFullTimer() !== `2026-01-28`) {
-    //每日刷新
-    getZiliaoList();
-  } */
+  if (isNowDate()) {
+  	// 当天不刷新
+  } else {
+  	//每日刷新
+  	getZiliaoList()
+  }
 })
 
 onLoad(() => {