提交 2d35b38e authored 作者: 王鹏飞's avatar 王鹏飞

fix:修复签名开启不显示的问题

上级 52ce06bf
...@@ -41,7 +41,6 @@ export default { ...@@ -41,7 +41,6 @@ export default {
} }
}, },
data() { data() {
const user = window.G.UserInfo || {}
const UA = navigator.userAgent const UA = navigator.userAgent
return { return {
isMobile: /iphone/i.test(UA) || (/android/i.test(UA) && /mobile/i.test(UA)), isMobile: /iphone/i.test(UA) || (/android/i.test(UA) && /mobile/i.test(UA)),
...@@ -49,8 +48,7 @@ export default { ...@@ -49,8 +48,7 @@ export default {
checked: false, checked: false,
sign: {}, sign: {},
documentUrl: '', documentUrl: '',
timer: null, timer: null
user
} }
}, },
computed: { computed: {
...@@ -61,6 +59,12 @@ export default { ...@@ -61,6 +59,12 @@ export default {
return !['/403'].includes(this.$route.path) return !['/403'].includes(this.$route.path)
} }
}, },
watch: {
$route() {
const user = window.G.UserInfo || {}
user.need_sign && this.createSign()
}
},
methods: { methods: {
createSign() { createSign() {
cAction.Other.createSign().then(response => { cAction.Other.createSign().then(response => {
...@@ -122,9 +126,6 @@ export default { ...@@ -122,9 +126,6 @@ export default {
a.remove() a.remove()
} }
}, },
beforeMount() {
this.user.need_sign && this.createSign()
},
destroyed() { destroyed() {
this.clearTimer() this.clearTimer()
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论