瀏覽代碼

新增免费观看参数来控制科目三视频1

JXDS18FUJT 1 年之前
父節點
當前提交
e44a299dfb
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/views/courseCatalog/components/courseCatalog/index.tsx

+ 2 - 1
src/views/courseCatalog/components/courseCatalog/index.tsx

@@ -44,6 +44,7 @@ export const CourseCatalog: React.FC = (props: any) => {
         // wx.chooseWXPay()
     }
     const [isVideoFree,setIsVideoFree] = useState<string>('-1')
+    const myExamIds = useRef<number[]>([])
     const createPayButton = () => {
         if (isVideoFree == '1') {
             return (<div
@@ -94,7 +95,7 @@ export const CourseCatalog: React.FC = (props: any) => {
     }
 
     const id = Number(new URLSearchParams(window.location.search).get("id") || '0')
-    const myExamIds = useRef<number[]>([])
+   
 
     const allowLook = (item: any) => {
         if (item.permission == 1) {