Skip to content

Commit 2dc97d7

Browse files
authored
Refactor comments and clean up console logs
Updated comments for clarity and removed console output.
1 parent a162472 commit 2dc97d7

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

src/App.vue

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</Icon>
2828
<!-- 页脚(仅 Footer;备案已内置在 Footer.vue) -->
2929
<Transition name="fade" mode="out-in">
30-
<!-- 仅受 setOpenState 控制,避免背景模式把页脚也隐藏 -->
30+
<!-- 仅受 setOpenState 影响,避免背景模式把页脚也隐藏 -->
3131
<div v-show="!store.setOpenState">
3232
<Footer class="f-ter" />
3333
</div>
@@ -97,7 +97,7 @@ onMounted(() => {
9797
return false;
9898
};
9999
100-
// 鼠标中键事件
100+
// 鼠标中键事件:切换壁纸展示模式
101101
window.addEventListener("mousedown", (event) => {
102102
if (event.button == 1) {
103103
store.backgroundShow = !store.backgroundShow;
@@ -112,21 +112,7 @@ onMounted(() => {
112112
getWidth();
113113
window.addEventListener("resize", getWidth);
114114
115-
// 控制台输出
116-
const styleTitle1 = "font-size: 20px;font-weight: 600;color: rgb(244,167,89);";
117-
const styleTitle2 = "font-size:12px;color: rgb(244,167,89);";
118-
const styleContent = "color: rgb(30,152,255);";
119-
const title1 = "無名の主页";
120-
const title2 = `
121-
_____ __ __ _______ ____ __
122-
|_ _| \\/ |/ ____\\ \\ / /\\ \\ / /
123-
| | | \\ / | (___ \\ \\_/ / \\ \\_/ /
124-
| | | |\\/| |\\___ \\ \\ / \\ /
125-
_| |_| | | |____) | | | | |
126-
|_____|_| |_|_____/ |_| |_|`;
127-
const content = \`\n\n版本: \${config.version}\n主页: \${config.home}\nGithub: \${config.github}\`;
128-
console.info(\`%c\${title1} %c\${title2} %c\${content}\`, styleTitle1, styleTitle2, styleContent);
129-
});
115+
130116
131117
onBeforeUnmount(() => {
132118
window.removeEventListener("resize", getWidth);

0 commit comments

Comments
 (0)