Skip to content

Commit

Permalink
store
Browse files Browse the repository at this point in the history
  • Loading branch information
hsyhhssyy committed Jun 24, 2024
1 parent e02ae99 commit 8307ffc
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 9 deletions.
1 change: 0 additions & 1 deletion src/desktop/components/ChatBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
<script lang="ts" setup>
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
import { SendOne } from '@icon-park/vue-next'
import { getData } from '@/utils'
import { useGameHubStore } from '@/stores/gamehub'
import { useUserStore } from '@/stores/user'
import IconButton from '@/universal/components/IconButton.vue'
Expand Down
3 changes: 1 addition & 2 deletions src/desktop/views/RegularHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ import { useRoute, useRouter } from 'vue-router'
import { useGameHubStore } from '@/stores/gamehub'
import { useUserStore } from '@/stores/user'
import { statisticsApi } from '@/api/game'
import { getData } from '@/utils'
import { Lightning, Logout, Editor } from '@icon-park/vue-next'
import IconButton from '@/universal/components/IconButton.vue'
import JoinRoom from '@/desktop/views/room/JoinRoom.vue'
Expand All @@ -81,7 +80,7 @@ const router = useRouter()
const user = useUserStore()
const gameHub = useGameHubStore()
const email = ref(getData('email') || '')
const email = ref(user.userInfo?.email || '')
const isLoading = ref(true)
const joinRoomComp = ref()
Expand Down
1 change: 0 additions & 1 deletion src/desktop/views/room/JoinRoom.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<script lang="ts" setup>
import { computed, onUnmounted, watch } from 'vue'
import type { SignalrResponse } from '@/api/signalr'
import { getData, removeData, setData, toast } from '@/utils'
import { useRoute, useRouter } from 'vue-router'
import { getGame } from '@/api/game'
import { gameList } from '@/def/games'
Expand Down
2 changes: 1 addition & 1 deletion src/desktop/views/room/WaitingRoomBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import { useRoute, useRouter } from 'vue-router'
import { Close, Logout, Peoples, Play, ShareOne } from '@icon-park/vue-next'
import { useGameHubStore } from '@/stores/gamehub'
import { useUserStore } from '@/stores/user'
import { getData, removeData, setData, toast } from '@/utils'
import { toast } from '@/utils'
import type { GameTypes } from '@/def/games'
import { getGameTypeMap } from '@/def/games'
import type { GameRoom } from '@/api/game'
Expand Down
1 change: 0 additions & 1 deletion src/mobile/components/ChatBoard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
<script lang="ts" setup>
import { nextTick, onMounted, onUnmounted, ref, watch } from 'vue'
import { SendOne, Communication, Peoples } from '@icon-park/vue-next'
import { getData } from '@/utils'
import { useGameHubStore } from '@/stores/gamehub'
import { useUserStore } from '@/stores/user'
import IconButton from '@/universal/components/IconButton.vue'
Expand Down
3 changes: 1 addition & 2 deletions src/mobile/views/RegularHome.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ import { useRoute, useRouter } from 'vue-router'
import { useGameHubStore } from '@/stores/gamehub'
import { useUserStore } from '@/stores/user'
import { statisticsApi } from '@/api/game'
import { getData } from '@/utils'
import { Lightning, Logout, Editor } from '@icon-park/vue-next'
import IconButton from '@/universal/components/IconButton.vue'
import JoinRoom from '@/desktop/views/room/JoinRoom.vue'
Expand All @@ -79,7 +78,7 @@ const router = useRouter()
const user = useUserStore()
const gameHub = useGameHubStore()
const email = ref(getData('email') || '')
const email = ref(user.userInfo?.email || '')
const isLoading = ref(true)
const joinRoomComp = ref()
Expand Down
2 changes: 1 addition & 1 deletion src/mobile/views/room/WaitingRoomBase.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import { useRoute, useRouter } from 'vue-router'
import { Close, Logout, Peoples, Play, ShareOne } from '@icon-park/vue-next'
import { useGameHubStore } from '@/stores/gamehub'
import { useUserStore } from '@/stores/user'
import { getData, removeData, toast } from '@/utils'
import { toast } from '@/utils'
import type { GameTypes } from '@/def/games'
import { getGameTypeMap } from '@/def/games'
import type { GameRoom } from '@/api/game'
Expand Down

0 comments on commit 8307ffc

Please sign in to comment.