```
fix(backend): resolve merge conflicts and update API proxy configuration - Remove leftover merge conflict markers from ChengduGamePage.vue - Fix broken HTML structure by properly closing header and section tags - Update proxy configuration to point to correct backend port (19000) - Clean up import statements and remove conflicting code blocks ```
This commit is contained in:
@@ -1,10 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
import { computed, onBeforeUnmount, onMounted, ref, watch } from 'vue'
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
<<<<<<< Updated upstream
|
|
||||||
=======
|
|
||||||
import deskImage from '../assets/images/desk/desk_01.png'
|
import deskImage from '../assets/images/desk/desk_01.png'
|
||||||
>>>>>>> Stashed changes
|
|
||||||
import type { AuthSession } from '../api/authed-request'
|
import type { AuthSession } from '../api/authed-request'
|
||||||
import { getUserInfo } from '../api/user'
|
import { getUserInfo } from '../api/user'
|
||||||
import {
|
import {
|
||||||
@@ -746,8 +743,6 @@ onBeforeUnmount(() => {
|
|||||||
<button class="ghost-btn" type="button" :disabled="leaveRoomPending" @click="backHall">
|
<button class="ghost-btn" type="button" :disabled="leaveRoomPending" @click="backHall">
|
||||||
{{ leaveRoomPending ? '退出中...' : '返回大厅' }}
|
{{ leaveRoomPending ? '退出中...' : '返回大厅' }}
|
||||||
</button>
|
</button>
|
||||||
<<<<<<< Updated upstream
|
|
||||||
=======
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="topbar-center">
|
<div class="topbar-center">
|
||||||
@@ -755,13 +750,7 @@ onBeforeUnmount(() => {
|
|||||||
<p class="game-title">成都麻将实战桌</p>
|
<p class="game-title">成都麻将实战桌</p>
|
||||||
<p class="game-subtitle">{{ roomStatusText }} · {{ currentPhaseText }}</p>
|
<p class="game-subtitle">{{ roomStatusText }} · {{ currentPhaseText }}</p>
|
||||||
</div>
|
</div>
|
||||||
>>>>>>> Stashed changes
|
|
||||||
</div>
|
</div>
|
||||||
</header>
|
|
||||||
|
|
||||||
<<<<<<< Updated upstream
|
|
||||||
<section class="table-panel game-table-panel">
|
|
||||||
=======
|
|
||||||
<div class="topbar-right">
|
<div class="topbar-right">
|
||||||
<div class="status-chip net-chip">
|
<div class="status-chip net-chip">
|
||||||
<span class="wifi-dot" :class="`is-${wsStatus}`"></span>
|
<span class="wifi-dot" :class="`is-${wsStatus}`"></span>
|
||||||
@@ -770,8 +759,9 @@ onBeforeUnmount(() => {
|
|||||||
<div class="status-chip clock-chip">{{ formattedClock }}</div>
|
<div class="status-chip clock-chip">{{ formattedClock }}</div>
|
||||||
<button class="header-btn ghost-btn" type="button" @click="connectWs">重连</button>
|
<button class="header-btn ghost-btn" type="button" @click="connectWs">重连</button>
|
||||||
</div>
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
<section class="table-panel game-table-panel">
|
<section class="table-panel game-table-panel">
|
||||||
>>>>>>> Stashed changes
|
|
||||||
<div class="room-brief">
|
<div class="room-brief">
|
||||||
<span class="room-brief-title">当前房间</span>
|
<span class="room-brief-title">当前房间</span>
|
||||||
<span class="room-brief-item">
|
<span class="room-brief-item">
|
||||||
@@ -799,11 +789,7 @@ onBeforeUnmount(() => {
|
|||||||
{{ startGamePending ? '开局请求中...' : '开始游戏' }}
|
{{ startGamePending ? '开局请求中...' : '开始游戏' }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<<<<<<< Updated upstream
|
|
||||||
<div class="mahjong-table game-mahjong-table" :class="{ active: Boolean(roomId) }">
|
|
||||||
=======
|
|
||||||
</section>
|
</section>
|
||||||
</header>
|
|
||||||
|
|
||||||
<section class="table-shell">
|
<section class="table-shell">
|
||||||
<img class="table-desk" :src="deskImage" alt="" />
|
<img class="table-desk" :src="deskImage" alt="" />
|
||||||
@@ -851,8 +837,6 @@ onBeforeUnmount(() => {
|
|||||||
<span class="wind east">东</span>
|
<span class="wind east">东</span>
|
||||||
<strong>{{ centerTimer }}</strong>
|
<strong>{{ centerTimer }}</strong>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
>>>>>>> Stashed changes
|
|
||||||
<div
|
<div
|
||||||
v-for="seat in seatViews"
|
v-for="seat in seatViews"
|
||||||
:key="seat.key"
|
:key="seat.key"
|
||||||
|
|||||||
@@ -6,11 +6,11 @@ export default defineConfig({
|
|||||||
server: {
|
server: {
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api/v1': {
|
'/api/v1': {
|
||||||
target: 'http://127.0.0.1:8080',
|
target: 'http://127.0.0.1:19000',
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
},
|
},
|
||||||
'/api/v1/ws': {
|
'/api/v1/ws': {
|
||||||
target: 'ws://127.0.0.1:8080',
|
target: 'ws://127.0.0.1:19000',
|
||||||
ws: true,
|
ws: true,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user