@@ -249,8 +249,15 @@ export default {
safeResult: ''
}
},
- created() {
- this.idGet()
+ watch: {
+ message: {
+ handler(newV) {
+ this.$nextTick(() => {
+ this.idGet(newV)
+ })
+ },
+ immediate: true
+ }
methods: {
idGet() {
@@ -52,8 +52,17 @@ export default {
name: ''
mounted() {
const myChart = echarts.init(document.getElementById('lineShow'))
const myChartA = echarts.init(document.getElementById('barShow'))
window.addEventListener('resize', () => {