mirror of
https://github.com/NapNeko/NapCatQQ.git
synced 2024-11-21 09:36:35 +00:00
feat: qrcode expired try
This commit is contained in:
parent
e5d3a8360c
commit
69e28eb000
2
src/core
2
src/core
@ -1 +1 @@
|
||||
Subproject commit 8cf3b85ffb49d9cc223d850a2a955b799b841bd7
|
||||
Subproject commit 45388bd385eb0090d86a968ca7946ef14484037f
|
@ -242,8 +242,8 @@ async function onSettingWindowCreated(view: Element) {
|
||||
// 开关
|
||||
doc.querySelectorAll('setting-switch[data-config-key]').forEach((dom: Element) => {
|
||||
dom.addEventListener('click', () => {
|
||||
const active = dom.getAttribute('is-active') === undefined
|
||||
//@ts-ignore 等待修复
|
||||
const active = dom.getAttribute('is-active') == undefined;
|
||||
//@ts-ignore 扩展
|
||||
setOB11Config(dom.dataset.configKey, active)
|
||||
if (active) dom.setAttribute('is-active', '')
|
||||
else dom.removeAttribute('is-active')
|
||||
|
@ -132,7 +132,7 @@ class WebUiApiOB11ConfigWrapper {
|
||||
"Authorization": "Bearer " + this.retCredential,
|
||||
"Content-Type": "application/json"
|
||||
},
|
||||
body: JSON.stringify(config)
|
||||
body: JSON.stringify({ config: JSON.stringify(config) })
|
||||
}
|
||||
);
|
||||
if (ConfigResponse.status == 200) {
|
||||
@ -353,7 +353,7 @@ async function onSettingWindowCreated(view) {
|
||||
});
|
||||
doc.querySelectorAll("setting-switch[data-config-key]").forEach((dom) => {
|
||||
dom.addEventListener("click", () => {
|
||||
const active = dom.getAttribute("is-active") === void 0;
|
||||
const active = dom.getAttribute("is-active") == void 0;
|
||||
setOB11Config(dom.dataset.configKey, active);
|
||||
if (active)
|
||||
dom.setAttribute("is-active", "");
|
||||
|
Loading…
x
Reference in New Issue
Block a user