@@ -189,21 +189,16 @@ export default {
}
},
-
watch: {
- drawerData() {
- this.init()
+ drawerData(v, o) {
+ if (JSON.stringify(v) !== JSON.stringify(o)) {
+ this.init()
+ }
openDrawer(value) {
this.drawer = value
- // if (value) {
- // this.init()
- // }
- created() {
- this.drawer = false
- },
mounted() {
this.drawer = false