remove unused event listener

This commit is contained in:
tamaina 2020-02-19 07:49:53 +09:00
parent 41f8cda7e4
commit bf0ff1e451

View file

@ -46,7 +46,6 @@ export default Vue.extend({
mounted() { mounted() {
this.size(); this.size();
window.addEventListener('resize', this.size); window.addEventListener('resize', this.size);
this.$on('resize', this.size);
}, },
beforeDestroy() { beforeDestroy() {
window.removeEventListener('resize', this.size); window.removeEventListener('resize', this.size);