Fix bug
This commit is contained in:
		
							parent
							
								
									238cb0077f
								
							
						
					
					
						commit
						32fc6ae2eb
					
				
					 1 changed files with 3 additions and 0 deletions
				
			
		| 
						 | 
					@ -50,6 +50,9 @@ export default Vue.extend({
 | 
				
			||||||
	beforeDestroy() {
 | 
						beforeDestroy() {
 | 
				
			||||||
		window.removeEventListener('resize', this.size);
 | 
							window.removeEventListener('resize', this.size);
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
 | 
						activated() {
 | 
				
			||||||
 | 
							this.size();
 | 
				
			||||||
 | 
						},
 | 
				
			||||||
	methods: {
 | 
						methods: {
 | 
				
			||||||
		previewable(file) {
 | 
							previewable(file) {
 | 
				
			||||||
			return file.type.startsWith('video') || file.type.startsWith('image');
 | 
								return file.type.startsWith('video') || file.type.startsWith('image');
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue