Fixed frontend to work for non subdomain.
This commit is contained in:
parent
3e5e318ef5
commit
8b770c789e
2 changed files with 4 additions and 1 deletions
|
|
@ -39,7 +39,9 @@ const completed = reactive({});
|
|||
const video_link = ref('');
|
||||
|
||||
onMounted(() => {
|
||||
const socket = io(process.env.VUE_APP_BASE_URL);
|
||||
const socket = io(process.env.VUE_APP_BASE_URL, {
|
||||
path: document.location.pathname + 'socket.io',
|
||||
});
|
||||
|
||||
socket.on('connect', () => config.isConnected = true);
|
||||
socket.on('disconnect', () => config.isConnected = false);
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
const { defineConfig } = require('@vue/cli-service')
|
||||
module.exports = defineConfig({
|
||||
publicPath: './',
|
||||
transpileDependencies: true
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in a new issue