提交 d4274948 authored 作者: lidongxu's avatar lidongxu

Merge branch 'release' into dev

# 王小卤链路中心
\ No newline at end of file
# 王小卤链路中心
## 网页层级讲解
1. 水印 fixed定位,层级是:
\ No newline at end of file
<template>
<router-view />
<el-watermark :font="{
color: `rgba(0, 0, 0, .65)`
}"
:content="content"
class="wm-class">
<router-view />
</el-watermark>
<back-to-up />
</template>
<script setup>
import useSettingsStore from '@/store/modules/settings'
import { handleThemeStyle } from '@/utils/theme'
import useUserStore from '@/store/modules/user'
const content = computed(() => {
return useUserStore().userInfo.nickName + ' ' + useUserStore().userInfo.phone
})
onMounted(() => {
nextTick(() => {
// 初始化主题样式
......@@ -13,3 +25,16 @@ onMounted(() => {
})
})
</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>
......@@ -238,7 +238,7 @@ export const dynamicRoutes = [
const router = createRouter({
// 路由模式:createWebHashHistory,createWebHistory
history: createWebHistory(),
history: createWebHashHistory(),
routes: isMobile() ? [...constantMobileRoutes] : [...constantPCRoutes], // 移动端单独静态公共路由表
scrollBehavior(to, from, savedPosition) {
if (savedPosition) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论