diff --git a/src/App.vue b/src/App.vue index e608022c1..0fb54ffde 100644 --- a/src/App.vue +++ b/src/App.vue @@ -55,22 +55,22 @@ export default defineComponent({ ); } }, - // mounted() { - // ElNotification({ - // title: "平台最新活动与动态", - // duration: 0, - // customClass: "fullpage-notification", - // // @ts-expect-error - // style: { width: "260px" }, - // position: "bottom-right", - // dangerouslyUseHTMLString: true, - // message: ` - // - // 点我查看 - // - // ` - // }); - // } + mounted() { + ElNotification({ + title: "国庆限时优惠活动", + duration: 0, + customClass: "fullpage-notification", + // @ts-expect-error + style: { width: "260px" }, + position: "bottom-right", + dangerouslyUseHTMLString: true, + message: ` + + 点我查看 + + ` + }); + } }); @@ -78,4 +78,8 @@ export default defineComponent({ .fullpage-notification > .el-notification__group > .el-notification__closeBtn { top: 15px; } +.fullpage-notification > div > h2 { + color: red; + font-size: 18px; +}