mirror of
https://github.com/HugoAura/Seewo-HugoAura.git
synced 2026-08-20 06:03:24 +08:00
[✨ Feat / 🛠️ Fix] Auto hide desktopAssistant & Fix #26
1. [/] 修改了 Header Icon 的隐藏方式, 尝试修复 #26 2. [+] 现在可以隐藏管家助手 (桌面右下角小窗) 了 3. [⇡] Bump version to v0.1.1-beta
This commit is contained in:
23
src/aura/ui/js/pageGlobal/desktopAssistant.js
Normal file
23
src/aura/ui/js/pageGlobal/desktopAssistant.js
Normal file
@@ -0,0 +1,23 @@
|
||||
// @ts-check
|
||||
|
||||
(() => {
|
||||
const applyHideSettings = () => {
|
||||
if (global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.autoHide) {
|
||||
const minimizeBtnEl = document.getElementsByClassName(
|
||||
"index__button2__2mhwC3oY"
|
||||
)[0].children[0];
|
||||
// @ts-expect-error
|
||||
minimizeBtnEl.click();
|
||||
} else if (global.__HUGO_AURA_CONFIG__.ssa.ux.easiAssistant.notDisplay) {
|
||||
const rootEl = document.getElementById("root");
|
||||
// @ts-expect-error
|
||||
rootEl.style["display"] = "none";
|
||||
}
|
||||
};
|
||||
|
||||
const onMounted = () => {
|
||||
applyHideSettings();
|
||||
};
|
||||
|
||||
onMounted();
|
||||
})();
|
||||
Reference in New Issue
Block a user