mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-06-20 23:14:28 +08:00
[🚧 Fix] Infrastructure logic errors
1. [/] 修复了 Header Icon 默认样式为 Hidden, 导致 UI Loader 尝试 Revive 后 Header Icon 消失的异常。 2. [/] 修正了一个 PLS 连接逻辑错误 (未正确处理更新 `installed` 参数的时机)。 3. [/] 修正了冰点上报拦截预览视图中, 未正确判断状态码导致的异常。
This commit is contained in:
@@ -272,14 +272,14 @@
|
|||||||
status: "dead",
|
status: "dead",
|
||||||
authToken: "66ccff0d000721114514191981023333",
|
authToken: "66ccff0d000721114514191981023333",
|
||||||
};
|
};
|
||||||
const isPlsFolderExists = (
|
|
||||||
await global.ipcRenderer.invoke(`${IPC_METHOD_BASE}.getPlsBinExists`)
|
|
||||||
).data.isExists;
|
|
||||||
updatedPlsStats.installed = isPlsFolderExists;
|
|
||||||
} else {
|
} else {
|
||||||
updatedPlsStats = curPlsStats.data;
|
updatedPlsStats = curPlsStats.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isPlsFolderExists = (
|
||||||
|
await global.ipcRenderer.invoke(`${IPC_METHOD_BASE}.getPlsBinExists`)
|
||||||
|
).data.isExists;
|
||||||
|
updatedPlsStats.installed = isPlsFolderExists;
|
||||||
// @ts-expect-error
|
// @ts-expect-error
|
||||||
global.__HUGO_AURA__.plsStats = updatedPlsStats;
|
global.__HUGO_AURA__.plsStats = updatedPlsStats;
|
||||||
console.debug(
|
console.debug(
|
||||||
@@ -328,5 +328,7 @@
|
|||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
onSetup();
|
setTimeout(() => {
|
||||||
|
onSetup();
|
||||||
|
}, 1500);
|
||||||
})();
|
})();
|
||||||
|
|||||||
@@ -32,6 +32,14 @@
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
.then(async (response) => {
|
.then(async (response) => {
|
||||||
|
if (response.status !== 200) {
|
||||||
|
resolve({
|
||||||
|
success: true,
|
||||||
|
data: null,
|
||||||
|
status: response.status
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
const parsedData = await response.json();
|
const parsedData = await response.json();
|
||||||
|
|
||||||
resolve({
|
resolve({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
<div class="aura-header-icon aura-header-icon-hidden">
|
<div class="aura-header-icon">
|
||||||
<div
|
<div
|
||||||
class="buttonClick__button-click__3bNeY1Ax"
|
class="buttonClick__button-click__3bNeY1Ax"
|
||||||
onclick="global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon.showAuraConfig()"
|
onclick="global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon.showAuraConfig()"
|
||||||
|
|||||||
@@ -10,9 +10,9 @@ global.__HUGO_AURA_UI_FUNCTIONS__.headerIcon = {
|
|||||||
let clickTimeout = null;
|
let clickTimeout = null;
|
||||||
|
|
||||||
const onMounted = () => {
|
const onMounted = () => {
|
||||||
if (global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod.showEntryIcon) {
|
if (!global.__HUGO_AURA_CONFIG__.auraSettings.uiAccessMethod.showEntryIcon) {
|
||||||
const iconEl = document.getElementsByClassName("aura-header-icon")[0];
|
const iconEl = document.getElementsByClassName("aura-header-icon")[0];
|
||||||
iconEl.classList.remove("aura-header-icon-hidden");
|
iconEl.classList.add("aura-header-icon-hidden");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
if (
|
||||||
|
|||||||
Reference in New Issue
Block a user