|
@@ -59,6 +59,7 @@ const ispic = ref(false);
|
|
|
const ismobile = ref(false);
|
|
|
|
|
|
|
|
|
+
|
|
|
const currentPdf = ref(props.src)
|
|
|
watchEffect(() => {
|
|
|
ispic.value = props.ispic;
|
|
@@ -86,14 +87,23 @@ watchEffect(() => {
|
|
|
// currentPdf.value = props.src.replaceAll("https://njdnyjsfilesystem.s3.cn-east-1.qiniucs.com","http://sdrqczwd3.hd-bkt.clouddn.com");
|
|
|
})
|
|
|
|
|
|
+const inst = ref(null);
|
|
|
|
|
|
onMounted(()=>{
|
|
|
proxy?.getConfigKey("sys.file.preview.watermark").then(res => {
|
|
|
if(res.data){
|
|
|
- watertext.value = res.data.replaceAll("{username}",userStore.nickname).replaceAll("{time}",moment().format("yyyy-MM-DD HH:mm:ss"))
|
|
|
- }
|
|
|
+ inst.value = setInterval(()=>{
|
|
|
+ watertext.value = res.data.replaceAll("{username}",userStore.nickname).replaceAll("{time}",moment().format("yyyy-MM-DD HH:mm:ss"))
|
|
|
+
|
|
|
+ },1000);
|
|
|
+ }
|
|
|
})
|
|
|
})
|
|
|
+onUnmounted(()=>{
|
|
|
+ if(inst.value!=null){
|
|
|
+ clearInterval(inst.value)
|
|
|
+ }
|
|
|
+})
|
|
|
|
|
|
|
|
|
// const { pdf, pages } = usePDF(currentPdf)
|