Skip to content

Commit a22679d

Browse files
committed
fix: 修复偶尔出现 127.0.0.1 访问的问题
1 parent b27308a commit a22679d

File tree

4 files changed

+303
-57
lines changed

4 files changed

+303
-57
lines changed

assets/js/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ class Style {
352352
applyTheme(name) {
353353
this._current_theme = name || Object.keys(this._themes)[0];
354354
this.render();
355+
window.dispatchEvent(new CustomEvent("theme-changed", {detail: this._current_theme}));
355356
}
356357
getThemeValue(key) {
357358
return (this._themes[this._current_theme] || {})[key];

0 commit comments

Comments
 (0)