BUG 30977
This commit is contained in:
@@ -36,8 +36,11 @@ export default {
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
id(v) {
|
||||
this.getInfo(v)
|
||||
id: {
|
||||
handler(v) {
|
||||
v && this.getInfo(v)
|
||||
},
|
||||
immediate: true
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -56,9 +59,6 @@ export default {
|
||||
meta: {}
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getInfo(this.id)
|
||||
},
|
||||
mounted() {
|
||||
this.$nextTick(() => {
|
||||
let content = document.querySelector('#dv-full-screen-container')
|
||||
@@ -74,9 +74,7 @@ export default {
|
||||
methods: {
|
||||
getInfo(id) {
|
||||
this.component = null
|
||||
id && this.instance.post(`${this.urlPrefix}/appdiylargescreen/queryLargeScreenDetailById?id=${id}`, null, {
|
||||
throttle: 2000
|
||||
}).then(res => {
|
||||
id && this.instance.post(`${this.urlPrefix}/appdiylargescreen/queryLargeScreenDetailById?id=${id}`).then(res => {
|
||||
if (res?.data) {
|
||||
const config = JSON.parse(res.data.config)
|
||||
if (config.custom) {
|
||||
|
||||
Reference in New Issue
Block a user