提交 614e47a8 authored 作者: lidongxu's avatar lidongxu

尝试携带水印

上级 82424d7e
# 王小卤链路中心 # 王小卤链路中心
\ No newline at end of file ## 网页层级讲解
1. 水印 fixed定位,层级是:
\ No newline at end of file
<template> <template>
<router-view /> <el-watermark :font="{
color: `rgba(0, 0, 0, .65)`
}"
:content="content"
class="wm-class">
<router-view />
</el-watermark>
<back-to-up /> <back-to-up />
</template> </template>
<script setup> <script setup>
import useSettingsStore from '@/store/modules/settings' import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme' import { handleThemeStyle } from '@/utils/theme'
import useUserStore from '@/store/modules/user'
const content = computed(() => {
return useUserStore().userInfo.nickName + ' ' + useUserStore().userInfo.phone
})
onMounted(() => { onMounted(() => {
nextTick(() => { nextTick(() => {
// 初始化主题样式 // 初始化主题样式
...@@ -13,3 +25,16 @@ onMounted(() => { ...@@ -13,3 +25,16 @@ onMounted(() => {
}) })
}) })
</script> </script>
<style scoped
lang="scss">
.wm-class {
position: fixed !important;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 999;
pointer-events: none;
}
</style>
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论