diff --git a/src/apis.js b/src/apis.js index 82a783a..8a99ed3 100644 --- a/src/apis.js +++ b/src/apis.js @@ -6,8 +6,8 @@ try { switch (envVersion) { case "develop": // 开发版 - BASE_URL = "http://192.168.1.30:8000/api/shoot"; - // BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; + // BASE_URL = "http://192.168.1.30:8000/api/shoot"; + BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; break; case "trial": // 体验版 BASE_URL = "https://apitest.shelingxingqiu.com/api/shoot"; diff --git a/src/components/PlayerSeats.vue b/src/components/PlayerSeats.vue index cb4c14f..5ce4f2a 100644 --- a/src/components/PlayerSeats.vue +++ b/src/components/PlayerSeats.vue @@ -14,6 +14,11 @@ const props = defineProps({ type: Function, default: () => {}, }, + /** 当前用户是否为房主;仅房主可见踢人按钮 */ + isOwner: { + type: Boolean, + default: false, + }, }); const seats = new Array(props.total).fill(1); @@ -45,8 +50,9 @@ const seats = new Array(props.total).fill(1); mode="widthFix" class="player-bg" /> --> + @@ -425,8 +443,9 @@ onBeforeUnmount(() => { + + :removePlayer="removePlayer" :isOwner="owner.id === user.id" /> {{ diff --git a/src/websocket.js b/src/websocket.js index bc96c36..49046fe 100644 --- a/src/websocket.js +++ b/src/websocket.js @@ -14,8 +14,8 @@ function createWebSocket(token, onMessage) { switch (envVersion) { case "develop": // 开发版 - url = "ws://192.168.1.30:8000/socket"; - // url = "wss://apitest.shelingxingqiu.com/socket"; + // url = "ws://192.168.1.30:8000/socket"; + url = "wss://apitest.shelingxingqiu.com/socket"; break; case "trial": // 体验版 url = "wss://apitest.shelingxingqiu.com/socket";