11<template >
22 <div >
3- <n-card class =" mainCard boxShadow" >
3+ <n-card class =" mainCard boxShadow" content-style = " padding-top:30px " >
44 <n-space vertical >
55 <n-grid :cols =" 7" >
66 <n-gi >
5656 </n-gi >
5757 </n-grid >
5858 </n-space >
59- <n-space vertical style =" margin-top : 25px " :size =" [2,21 ]" >
59+ <n-space vertical style =" margin-top : 25px " :size =" [2,25 ]" >
6060 <!-- 队伍一-->
6161 <n-space justify =" space-around" v-for =" (singleData,index) in summonersDataList" >
6262 <n-space vertical :size =" [2,0]" >
@@ -246,7 +246,7 @@ import {
246246} from ' naive-ui'
247247import {ThumbUp ,World ,ThumbDown ,ChevronsDownLeft , ArrowBackUp , Ballon } from ' @vicons/tabler'
248248import {onMounted ,ref } from " vue" ;
249- import {useStore } from " @/render/store" ;
249+ import {matchStore } from " @/render/store" ;
250250import {storeToRefs } from " pinia/dist/pinia" ;
251251import {appConfig } from " @/utils/main/config" ;
252252import {queryGameDetailsData } from " @/utils/main/queryDetailedGame" ;
@@ -258,10 +258,15 @@ export default {
258258 NCard, NAvatar, NSpace, NTag, NIcon, NButton, NColorPicker,NEllipsis,
259259 NPopover,NList, NListItem,NScrollbar,NGrid,NGi,NBadge,ThumbUp,World,ThumbDown,ChevronsDownLeft, ArrowBackUp, Ballon
260260 },
261- setup (props ,{emit}){
261+ props: {
262+ lastPage: {
263+ type: Number
264+ }
265+ },
266+ setup (props ){
262267 let gameDetalisList = []
263- const store = useStore ()
264- const {currentQueryGameId ,currentSummonerName } = storeToRefs (store)
268+ const store = matchStore ()
269+ const {currentQueryGameId ,currentSummonerName , pageCount } = storeToRefs (store)
265270 let titleList = ref ([])
266271 let summonersDataList = ref ([])
267272 let otherData = ref (null )
@@ -365,10 +370,14 @@ export default {
365370 })
366371 }
367372 const backPageSencond = () => {
368- emit (' changePageSencond' )
373+ if (props .lastPage === 1 ){
374+ pageCount .value = 1
375+ }else {
376+ pageCount .value = 2
377+ }
369378 }
370379 const handleMin = () => {
371- ipcRenderer .send (' mainwin -min' )
380+ ipcRenderer .send (' match-history-window -min' )
372381 }
373382
374383 // 图片不存在显示默认图片
@@ -413,8 +422,8 @@ export default {
413422}
414423.suspension {
415424 position : absolute ;
416- bottom : 5 px ;
417- right : 60 px ;
425+ top : 7 px ;
426+ right : 3 px ;
418427}
419428.scale-in-hor-left {
420429 -webkit-animation : scale-in-hor-left 1.5s cubic-bezier (0.250 , 0.460 , 0.450 , 0.940 ) both ;
0 commit comments