diff --git a/quasar.conf.js b/quasar.conf.js index 0486640..5e8b52a 100644 --- a/quasar.conf.js +++ b/quasar.conf.js @@ -75,6 +75,17 @@ module.exports = configure(function (ctx) { https: false, port: 8080, open: true, // opens browser window automatically + headers: { + "Access-Control-Allow-Methods": "POST,GET,PUT,DELETE", + "Access-Control-Allow-Credentials": true, + "Access-Control-Allow-Origin": "*", + "Access-Control-Allow-Headers": "*", + }, + proxy: { + "/get_websocket_port": "http://192.168.2.102", + "/media_control_client_product.js": "http://192.168.2.102", + "/media_control_client_language.js": "http://192.168.2.102", + }, }, // https://v2.quasar.dev/quasar-cli/quasar-conf-js#Property%3A-framework diff --git a/src/App.vue b/src/App.vue index 306807f..e97b399 100644 --- a/src/App.vue +++ b/src/App.vue @@ -117,7 +117,7 @@ export default defineComponent({ console.log(e); } - EventBus.getInstance().on(EventNamesDefine.CheckDebug, () => { + EventBus.getInstance().on(EventNamesDefine.CheckDebug2, () => { const to_normal_url = () => { const p1 = window.location.href.indexOf("?debug"); const p2 = window.location.href.indexOf("#");