wangxy 2 месяцев назад
Родитель
Сommit
8dc0188d4c
1 измененных файлов с 10 добавлено и 8 удалено
  1. 10 8
      pages/newEnglish/components/beiPage.vue

+ 10 - 8
pages/newEnglish/components/beiPage.vue

@@ -140,7 +140,15 @@
 		httpApi.getWordWancheng({
 			jieId: props.pageData.jieId,
 			wordId: props.activeWord.id
-		})
+		}).then((res) => {
+      const {
+        wanchangflag
+      } = res.data;
+      if (wanchangflag == 1) {
+        // 通知岛重新调用接口
+        cacheManager.remove('zhangInfo')
+      }
+    })
 	}
 
 	function noticeBackDb() {
@@ -153,13 +161,7 @@
 			type: 3,
 			wordId: props.activeWord.id
 		}).then(res => {
-			const {
-				wanchangflag
-			} = res.data;
-			if (wanchangflag == 1) {
-				// 通知岛重新调用接口
-				cacheManager.remove('zhangInfo')
-			}
+
 		})
 	}