mo 2 years ago
parent
commit
1c208b8ce3
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/views/article-center/theory.tsx

+ 3 - 3
src/views/article-center/theory.tsx

@@ -29,7 +29,7 @@ export default defineComponent({
         page: 1,
         rows: 20
       },
-      theory:null
+      theory:null as null
     }
   },
   mounted() {
@@ -72,9 +72,9 @@ export default defineComponent({
         this.dataShow = false
         this.finished = true
       }
-      if(this.theory&&this.theory?.scrollTop){
+      if(this.theory&&this.theory.scrollTop as never){
         this.$nextTick(()=>{
-          window.scrollTo(0, this.theory?.scrollTop)
+          window.scrollTo(0, this.theory.scrollTop as never)
         })
         //
       }