Browse Source

修改判断

lex 10 months ago
parent
commit
adb8cf4ac5
2 changed files with 4 additions and 4 deletions
  1. 2 2
      src/components/col-video/index.tsx
  2. 2 2
      src/tenant/music/coursewarePlay/index.tsx

+ 2 - 2
src/components/col-video/index.tsx

@@ -151,7 +151,7 @@ export default defineComponent({
       try {
         const apiSuffix =
           state.platformType === 'STUDENT' ? '/api-student' : '/api-teacher'
-        const { data } = await request.get(
+        const res = await request.get(
           apiSuffix + '/sysConfig/queryByParamName',
           {
             params: {
@@ -159,7 +159,7 @@ export default defineComponent({
             }
           }
         )
-        this.disableScreenRecordingFlag = data.paramValue || ''
+        this.disableScreenRecordingFlag = res.data.paramValue || ''
       } catch {
         //
       }

+ 2 - 2
src/tenant/music/coursewarePlay/index.tsx

@@ -420,7 +420,7 @@ export default defineComponent({
     // 获取支付渠道
     const sysParamConfig = async () => {
       try {
-        const { data } = await request.get(
+        const res = await request.get(
           apiSuffix.value + '/sysConfig/queryByParamName',
           {
             params: {
@@ -428,7 +428,7 @@ export default defineComponent({
             }
           }
         )
-        data.disableScreenRecordingFlag = data.paramValue || ''
+        data.disableScreenRecordingFlag = res.data.paramValue || ''
       } catch {
         //
       }