tremble 3 years ago
parent
commit
675bd41fef
3 changed files with 11 additions and 2 deletions
  1. 6 0
      src/apis/index.js
  2. 1 1
      src/components/openVideo/index.vue
  3. 4 1
      src/store/modules/rtc.js

+ 6 - 0
src/apis/index.js

@@ -29,6 +29,12 @@ export const inCat = (data) => {
   return http.get("/api/inCat", data);
 };
 
+export const getSign = (data) => {
+  return http.get("/api/tencentYun/getSign", data);
+};
+
+
+
 export const burying_point = (data) => {
   let url = encodeURI(window.location.href)
   return http.get("/api/point", {

+ 1 - 1
src/components/openVideo/index.vue

@@ -82,7 +82,7 @@ onMounted(() => {
   bottom: 0;
   display: table;
   table-layout: fixed;
-  z-index: 110;
+  z-index: 1100000;
   background-color: rgba(0, 0, 0, 1);
 
   .bofang {

+ 4 - 1
src/store/modules/rtc.js

@@ -1,6 +1,8 @@
 
 
 import { genTestUserSig } from '@/utils/generateTestUserSig';
+// import { apis } from '@/apis';
+
 
 export default {
     namespaced: true,
@@ -83,6 +85,7 @@ export default {
             state.isPublished = payload
         },
         getInitParamsStates(state, payload) {
+            console.log(state.sdkAppId , state.secretKey , state.roomId , state.userId);
             return !!(state.sdkAppId && state.secretKey && state.roomId && state.userId);
         },
         getUserSig(state, payload) {
@@ -106,6 +109,6 @@ export default {
         
     },
     actions: {
-
+      
     },
 }