Browse Source

更新新英语切换

wangxy 2 months ago
parent
commit
acfb95f12b
2 changed files with 3 additions and 4 deletions
  1. 1 2
      pages/wordList/wordList.vue
  2. 2 2
      utils/useSwiper.js

+ 1 - 2
pages/wordList/wordList.vue

@@ -103,8 +103,7 @@
       userCode
 	} = useSwiper(listData, (userCode) => {
 		console.log('userCode',userCode)
-		
-		
+
 	});
 
 	onLoad((options) => {

+ 2 - 2
utils/useSwiper.js

@@ -3,7 +3,7 @@ import {
 } from "vue"
 import {getUserIdentity} from "@/utils/common.js"
 
-export function useSwiper(Da, noticeYK) {
+export function useSwiper(Da, callBack) {
 	
 	const userCode = getUserIdentity()
 	
@@ -38,8 +38,8 @@ export function useSwiper(Da, noticeYK) {
 			}
 		} else {
 			swiperData.isAllowed = false;
-			noticeYK(userCode)
 		}
+		callBack && callBack(userCode)
 	}
 
 	// 4. 业务条件校验(示例)