Commit 0bb66b47 authored by 徐俊's avatar 徐俊

xujun

parent 6341116c
...@@ -362,7 +362,7 @@ export default { ...@@ -362,7 +362,7 @@ export default {
}, },
}, },
created () { created () {
console.log(this.deviceList)
}, },
methods: { methods: {
calNumberAmount () { calNumberAmount () {
......
...@@ -288,6 +288,8 @@ export default { ...@@ -288,6 +288,8 @@ export default {
}, },
}, },
created() { created() {
if (this.deviceList)
this.calNumberAmount()
}, },
methods: { methods: {
calNumberAmount() { calNumberAmount() {
...@@ -318,12 +320,12 @@ export default { ...@@ -318,12 +320,12 @@ export default {
this.calNumberAmount(); this.calNumberAmount();
}, },
}, },
watch: { // watch: {
deviceList: { // deviceList: {
handler(deviceList) { // handler(deviceList) {
if (!!deviceList) this.calNumberAmount(); // if (!!deviceList) this.calNumberAmount();
}, // },
}, // },
}, // },
}; };
</script> </script>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment