lcw
This commit is contained in:
13
src/App.vue
13
src/App.vue
@ -1,16 +1,20 @@
|
|||||||
<template>
|
<template>
|
||||||
<router-view v-slot="{ Component }" v-if="isRouterAlive">
|
<router-view v-slot="{ Component }" v-if="isRouterAlive">
|
||||||
<keep-alive :include="store.getters.keepLiiveRoute">
|
<keep-alive :include="store.getters.keepLiiveRoute">
|
||||||
|
<Watermark :text="content" :color="'rgba(0, 0, 0, .15)'">
|
||||||
<Component :is="Component"></Component>
|
<Component :is="Component"></Component>
|
||||||
|
</Watermark>
|
||||||
</keep-alive>
|
</keep-alive>
|
||||||
</router-view>
|
</router-view>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import * as ocr from "@paddlejs-models/ocr";
|
import * as ocr from "@paddlejs-models/ocr";
|
||||||
|
import Watermark from "@/components/Watermark.vue";
|
||||||
import { ref, nextTick, provide, onMounted,getCurrentInstance } from "vue";
|
import { ref, nextTick, provide, onMounted,getCurrentInstance } from "vue";
|
||||||
import { useStore } from "vuex";
|
import { useStore } from "vuex";
|
||||||
import { getItem, setItem} from "@/utils/storage";
|
import { getItem, setItem} from "@/utils/storage";
|
||||||
import { generateNewStyle, writeNewStyle } from "@/utils/theme";
|
import { generateNewStyle, writeNewStyle } from "@/utils/theme";
|
||||||
|
import {timeValidate} from "@/utils/tools";
|
||||||
const { proxy } = getCurrentInstance();
|
const { proxy } = getCurrentInstance();
|
||||||
|
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
@ -27,6 +31,7 @@ const reload = () => {
|
|||||||
provide("reload", reload);
|
provide("reload", reload);
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
document.title = "林芝";
|
document.title = "林芝";
|
||||||
|
frashJs()
|
||||||
// initPage()
|
// initPage()
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -44,7 +49,13 @@ const initPage = async () => {
|
|||||||
imgIsLoad = false;
|
imgIsLoad = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
const content=ref([])
|
||||||
|
const frashJs = () => {
|
||||||
|
const sfzh= getItem("idEntityCard")
|
||||||
|
const userName= getItem("USERNAME")
|
||||||
|
const time = timeValidate()
|
||||||
|
content.value=[userName,sfzh,time,"林芝哨岗系统","禁止泄露公民个人信息和警务工作秘密"]
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
@import "./styles/index.scss";
|
@import "./styles/index.scss";
|
||||||
|
Reference in New Issue
Block a user