From 7d5a85f8561c6753cece5a671cb5c5b7f8440954 Mon Sep 17 00:00:00 2001 From: Java-S12138 <1007643852@qq.com> Date: Sat, 20 Aug 2022 22:44:41 +0800 Subject: [PATCH] update 1.21.1215 --- package.json | 2 +- src/render/components/assist/champRank.vue | 11 +- src/render/components/assist/restraint.vue | 160 +++++++++++++++++++++ src/render/components/assist/rune.vue | 64 +++++---- src/render/store/index.js | 2 +- src/utils/main/lcu.js | 13 +- 6 files changed, 201 insertions(+), 51 deletions(-) create mode 100644 src/render/components/assist/restraint.vue diff --git a/package.json b/package.json index 3021dee..c87a669 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "license": "MIT", "private": false, "author": "Java_S", - "version": "1.20.1215", + "version": "1.21.1215", "main": "background.js", "email": "java_s@qq.com", "description": "A bran-new League of Legends assistant software, a replacement for WeGame.", diff --git a/src/render/components/assist/champRank.vue b/src/render/components/assist/champRank.vue index 2304479..e92e4ac 100644 --- a/src/render/components/assist/champRank.vue +++ b/src/render/components/assist/champRank.vue @@ -2,7 +2,7 @@
- + 国服英雄数据排行 - + { width: auto; } -.n-tag { - border-radius: 5px; -} .isHover:hover { background-color: #ffffff; diff --git a/src/render/components/assist/restraint.vue b/src/render/components/assist/restraint.vue new file mode 100644 index 0000000..81de718 --- /dev/null +++ b/src/render/components/assist/restraint.vue @@ -0,0 +1,160 @@ + + + + + + + diff --git a/src/render/components/assist/rune.vue b/src/render/components/assist/rune.vue index e645b2c..7bcb75f 100644 --- a/src/render/components/assist/rune.vue +++ b/src/render/components/assist/rune.vue @@ -2,24 +2,17 @@
- - - 设置自动配置符文 - - + + +
{{ currentChampName }} @@ -100,6 +93,14 @@
+ + + + + +
@@ -115,14 +116,16 @@ diff --git a/src/render/store/index.js b/src/render/store/index.js index f2549bc..8da3348 100644 --- a/src/render/store/index.js +++ b/src/render/store/index.js @@ -16,7 +16,7 @@ export const useStore = defineStore('app', { currentQueryGameId:0, currentSummonerName:'', currentTeam:1, // 当前队伍 - frankVersion:'1.20.1215' + frankVersion:'1.21.1215' } }, actions:{ diff --git a/src/utils/main/lcu.js b/src/utils/main/lcu.js index 6449b97..39659b9 100644 --- a/src/utils/main/lcu.js +++ b/src/utils/main/lcu.js @@ -11,20 +11,11 @@ const champSelectPatchAction = async (credentials, actionID, champId, type) => { } try { - // const res = await createHttp1Request({ - // method: "PATCH", - // url: `/lol-champ-select/v1/session/actions/${actionID}`, - // body: localBody - // }, credentials) - // todo http2 PATCH - const session = await createHttpSession(credentials) - const res = await createHttp2Request({ + const res = await createHttp1Request({ method: "PATCH", url: `/lol-champ-select/v1/session/actions/${actionID}`, body: localBody - },session, credentials) - session.close() - console.log(res.raw) + }, credentials) return res.status } catch (e) { console.log('Json Error Can Ignore')