Skip to content

Commit f3eabba

Browse files
committed
update 1.24.1217
1 parent 0fc8a97 commit f3eabba

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/render/components/assist/rune.vue

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-if="runeDataListFor.length !=0">
2+
<div v-if="runeDataListFor.length !==0">
33
<n-card class="boxShadow" size="small">
44
<n-space justify="space-between">
55
<n-badge :value="isAutoRune" color="#ff6666">
@@ -117,7 +117,7 @@
117117
import {ipcRenderer} from "electron"
118118
import {
119119
NCard, NAvatar, NSpace, NTag, NGrid, NGi, NIcon,
120-
NBadge, NButton, NPopconfirm, useMessage,NDrawer, NDrawerContent
120+
NBadge, NButton, useMessage,NDrawer, NDrawerContent
121121
} from 'naive-ui'
122122
import {ref} from "vue";
123123
import {champDict, mapNameFromUrl} from '../../../utils/render/lolDataList'
@@ -170,6 +170,8 @@ ipcRenderer.on('current-champ-select', (event, data) => {
170170
if (currentGameMode === ''){currentGameMode = data.mode}
171171
})
172172
173+
174+
173175
const getRuneData = async (gameMode) => {
174176
// 判断当前英雄是否配置看自动符文
175177
if (appConfig.has(`autoRune.${currentChamp.value}` )){
@@ -217,9 +219,11 @@ const getRuneData = async (gameMode) => {
217219
}
218220
219221
}
220-
221-
222-
222+
// const test = () => {
223+
// currentChampAlias.value = 'Akali'
224+
// getRuneData('')
225+
// }
226+
// test()
223227
224228
// 切换不同的装备进行显示
225229
const changeItemsImg = () => {
@@ -233,8 +237,9 @@ const changeItemsImg = () => {
233237
// 获取装备图片链接数组
234238
const getItemImgUrl = (blocks) => {
235239
for (const blocksElement of blocks) {
236-
if (blocksElement.type.indexOf('Recommended') != -1) {
240+
if (blocksElement.type.indexOf('Core')!==-1) {
237241
var currentItemList = []
242+
if (blocksElement.items.length > 3){blocksElement.items = blocksElement.items.slice(1)}
238243
for (const items of blocksElement.items) {
239244
const itemImgUrl = `https://game.gtimg.cn/images/lol/act/img/item/${items.id}.png`
240245
currentItemList.push(itemImgUrl)
@@ -301,7 +306,7 @@ const pageBack = () => {
301306
pageStart = pageStart - 4
302307
pageEnd = pageEnd - 4
303308
runeDataListFor.value = runeDataList.slice(pageStart, pageEnd)
304-
} else if (pageEnd == runeDataList.length) {
309+
} else if (pageEnd == runeDataList.length && pageStart!==0) {
305310
pageEnd = pageStart
306311
pageStart = pageStart - 4
307312
runeDataListFor.value = runeDataList.slice(pageStart, pageEnd)

src/render/store/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export const queryStore = defineStore('query',{
5454
export const frankRelease = defineStore('version',{
5555
state: () => {
5656
return {
57-
frankVersion:'1.23.1216'
57+
frankVersion:'1.23.1217'
5858
}
5959
}
6060
})

0 commit comments

Comments
 (0)