Merge pull request #12 from simon300000/generate-https

roomUrl auto https support
This commit is contained in:
John Smith 2019-11-30 14:16:28 +08:00 committed by GitHub
commit f429a6a03d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ export default {
let resolved = this.$router.resolve({name: 'room', params: {roomId: this.form.roomId},
query: {config_id: window.localStorage.configId}})
this.roomUrl = `http://${window.location.host}${resolved.href}`
this.roomUrl = `${window.location.protocol}//${window.location.host}${resolved.href}`
})
},
enterRoom() {