Commit 4ea699c8 authored by 刘阳's avatar 刘阳

fix: 图片引用

parent 6e4df758
import videoPlay from './video_play.png' import videoPlay from './video_play.png'
import videoBg from './video_bg.png' import videoBg from './video_bg.png'
import nocontent from './nocontent.png' import nocontent from './nocontent.png'
import one from './1.PNG' import one from './1.png'
import two from './2.PNG' import two from './2.png'
import thr from './3.PNG' import thr from './3.png'
import four from './4.PNG' import four from './4.png'
import five from './5.PNG' import five from './5.png'
import six from './6.PNG' import six from './6.png'
import siven from './7.PNG' import siven from './7.png'
import eight from './8.PNG' import eight from './8.png'
import nine from './9.PNG' import nine from './9.png'
export { export {
videoPlay, videoPlay,
......
...@@ -75,9 +75,9 @@ export default { ...@@ -75,9 +75,9 @@ export default {
userId = `${new Date().getTime()}` userId = `${new Date().getTime()}`
} }
const routeName = joinObj.path const routeName = joinObj.path
socket.connect(userId, () => { // socket.connect(userId, () => {
this.$router.push({ name: routeName, query: { userId, roomId: this.roomId }}) this.$router.push({ name: routeName, query: { userId, roomId: this.roomId }})
}) // })
} }
}, },
mounted() { mounted() {
......
...@@ -44,7 +44,17 @@ ...@@ -44,7 +44,17 @@
<script> <script>
import { GeekDrawBoard } from '@geek/geekui' import { GeekDrawBoard } from '@geek/geekui'
import Vue from 'vue' import Vue from 'vue'
import { videoBg, bg } from '@/assets/images/index' import {
videoBg,one,
two,
thr,
four,
five,
six,
siven,
eight,
nine
} from '@/assets/images/index'
import HWRTC from '@/utils/hwrtc' import HWRTC from '@/utils/hwrtc'
import socket from '@/utils/socket' import socket from '@/utils/socket'
...@@ -64,7 +74,15 @@ const streamTypes = [ ...@@ -64,7 +74,15 @@ const streamTypes = [
] ]
const imgs = [ const imgs = [
bg, videoBg one,
two,
thr,
four,
five,
six,
siven,
eight,
nine
] ]
Vue.use(GeekDrawBoard) Vue.use(GeekDrawBoard)
...@@ -188,7 +206,8 @@ export default { ...@@ -188,7 +206,8 @@ export default {
transform: translateY(-50%); transform: translateY(-50%);
} }
.bg { .bg {
height: 100vh; width: 100vw; height: 100vh;
width: 100vw;
} }
.draw-board { .draw-board {
position: absolute; position: absolute;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment