فهرست منبع

修复资源异常

1
mo 1 سال پیش
والد
کامیت
89af658d89
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/custom-plugins/guide-page/myResources-guide.tsx

+ 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;