修改已知问题
This commit is contained in:
@@ -80,6 +80,7 @@
|
|||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route: function(val) {
|
$route: function(val) {
|
||||||
|
console.log(val)
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$watermark.set(this.userInfo().username + ' ' + this.userInfo().realname)
|
this.$watermark.set(this.userInfo().username + ' ' + this.userInfo().realname)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
let watermark = {}
|
let watermark = {}
|
||||||
let setWatermark = (str) => {
|
let setWatermark = (str) => {
|
||||||
let id = '1.23452384164.123412415'
|
console.log(str)
|
||||||
|
let id = Date.parse(new Date())
|
||||||
if (document.getElementById(id) !== null) {
|
if (document.getElementById(id) !== null) {
|
||||||
document.body.removeChild(document.getElementById(id))
|
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'
|
document.getElementsByClassName('detail-content')[0].style.background = 'url(' + can.toDataURL('image/png') + ') left top repeat'
|
||||||
|
|
||||||
}
|
}
|
||||||
|
console.log(id)
|
||||||
return id
|
return id
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,8 +28,9 @@ let setWatermark = (str) => {
|
|||||||
watermark.set = (str) => {
|
watermark.set = (str) => {
|
||||||
let id = setWatermark(str)
|
let id = setWatermark(str)
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
|
let value = JSON.parse(localStorage.getItem('pro__Login_Userinfo'))
|
||||||
if (document.getElementById(id) === null) {
|
if (document.getElementById(id) === null) {
|
||||||
id = setWatermark(str)
|
id = setWatermark(value.value.username + ' ' + value.value.realname)
|
||||||
}
|
}
|
||||||
}, 2000)
|
}, 2000)
|
||||||
window.onresize = () => {
|
window.onresize = () => {
|
||||||
|
|||||||
@@ -188,7 +188,7 @@
|
|||||||
|
|
||||||
// update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
|
// update-begin-author:sunjianlei date:20200120 for: 动态更改页面标题
|
||||||
changeTitle(title) {
|
changeTitle(title) {
|
||||||
let projectTitle = 'Jero-Boot 企业级快速开发平台'
|
let projectTitle = '蔚来全球法规平台'
|
||||||
// 首页特殊处理
|
// 首页特殊处理
|
||||||
if (this.$route.path === indexKey) {
|
if (this.$route.path === indexKey) {
|
||||||
document.title = projectTitle
|
document.title = projectTitle
|
||||||
@@ -464,7 +464,8 @@
|
|||||||
.ant-table-placeholder {
|
.ant-table-placeholder {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
.ant-input-number{
|
|
||||||
|
.ant-input-number {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user