|
|
@@ -76,10 +76,10 @@ const viewMixins = {
|
|
|
created() {
|
|
|
},
|
|
|
activated(){
|
|
|
- if(this.resize) window.addEventListener('resize', this.handleResize);
|
|
|
+ // if(this.resize) window.addEventListener('resize', this.handleResize);
|
|
|
},
|
|
|
deactivated() {
|
|
|
- if(this.resize) window.removeEventListener('resize', this.handleResize)
|
|
|
+ // if(this.resize) window.removeEventListener('resize', this.handleResize)
|
|
|
},
|
|
|
mounted() {
|
|
|
},
|
|
|
@@ -98,7 +98,7 @@ const viewMixins = {
|
|
|
async viewInit() {
|
|
|
// 没有传值进来 默认基准宽度为基准算最大高度
|
|
|
await this.setMax()
|
|
|
- if(this.resize) window.addEventListener('resize', this.handleResize);
|
|
|
+ // if(this.resize) window.addEventListener('resize', this.handleResize);
|
|
|
},
|
|
|
// 获取容器的宽高最大值
|
|
|
async setMax() {
|