BUG 30977

This commit is contained in:
aixianling
2022-08-29 14:12:26 +08:00
parent 61afcd2d98
commit d6b806bd02

View File

@@ -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) {