Browse Source

Merge branch 'startLogin'

mo 1 năm trước cách đây
mục cha
commit
a69a469d98

+ 1 - 1
src/components/RouterError/index.tsx

@@ -11,7 +11,7 @@ export default defineComponent({
     router.onError(error => {
       const str = error.message + '';
       const isChunkLoadFailed = str.indexOf('imported');
-
+      console.log(error)
       // const targetPath = router.history.pending.fullPath
       if (isChunkLoadFailed != -1 && !isOpen) {
         isOpen = true;

+ 2 - 1
src/custom-plugins/guide-page/myResources-guide.tsx

@@ -69,6 +69,7 @@ export default defineComponent({
         }else{
           guideInfo.value = {}
         }
+        console.log(guideInfo.value,'guideInfo.value')
         if (guideInfo.value && guideInfo.value.myResourcesGuide) {
           tipShow.value = false;
         } else {
@@ -133,7 +134,7 @@ export default defineComponent({
     const endGuide = async() => {
       // let guideInfo =
       //   JSON.parse(localStorage.getItem('teacher-guideInfo') || '{}') || null;
-      if (guideInfo.value) {
+      if (!guideInfo.value) {
         guideInfo.value = { myResourcesGuide: true };
       } else {
         guideInfo.value.myResourcesGuide = true;