Skip to content

Commit

Permalink
🎈 perf: Ciallo~(∠・ω< )⌒☆
Browse files Browse the repository at this point in the history
  • Loading branch information
XasYer committed Sep 20, 2024
1 parent 5937f37 commit 807b793
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ import { ElConfigProvider } from "element-plus";
import { ReDialog } from "@/components/ReDialog";
import zhCn from "element-plus/es/locale/lang/zh-cn";
let OriginTitile = document.title;
let titleTime;
document.addEventListener("visibilitychange", () => {
if (document.hidden) {
OriginTitile = document.title;
document.title = "我才不是柚子厨呢";
clearTimeout(titleTime);
} else {
document.title = "Ciallo~(∠・ω< )⌒☆";
titleTime = setTimeout(() => {
document.title = OriginTitile;
}, 2000);
}
});
export default defineComponent({
name: "app",
components: {
Expand Down

0 comments on commit 807b793

Please sign in to comment.