修改已知问题

This commit is contained in:
qq787203167
2022-03-24 19:26:12 +08:00
parent 7b691a7378
commit ee18d0c206
3 changed files with 9 additions and 4 deletions
+1
View File
@@ -80,6 +80,7 @@
},
watch: {
$route: function(val) {
console.log(val)
this.$nextTick(() => {
this.$watermark.set(this.userInfo().username + ' ' + this.userInfo().realname)
})
+5 -2
View File
@@ -1,6 +1,7 @@
let watermark = {}
let setWatermark = (str) => {
let id = '1.23452384164.123412415'
console.log(str)
let id = Date.parse(new Date())
if (document.getElementById(id) !== null) {
document.body.removeChild(document.getElementById(id))
}
@@ -19,6 +20,7 @@ let setWatermark = (str) => {
document.getElementsByClassName('detail-content')[0].style.background = 'url(' + can.toDataURL('image/png') + ') left top repeat'
}
console.log(id)
return id
}
@@ -26,8 +28,9 @@ let setWatermark = (str) => {
watermark.set = (str) => {
let id = setWatermark(str)
setInterval(() => {
let value = JSON.parse(localStorage.getItem('pro__Login_Userinfo'))
if (document.getElementById(id) === null) {
id = setWatermark(str)
id = setWatermark(value.value.username + ' ' + value.value.realname)
}
}, 2000)
window.onresize = () => {
@@ -188,7 +188,7 @@
// update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
changeTitle(title) {
let projectTitle = 'Jero-Boot 企业级快速开发平台'
let projectTitle = '蔚来全球法规平台'
// 首页特殊处理
if (this.$route.path === indexKey) {
document.title = projectTitle
@@ -464,7 +464,8 @@
.ant-table-placeholder {
background: transparent !important;
}
.ant-input-number{
.ant-input-number {
background: transparent !important;
}
</style>