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