mirror of
				https://github.com/scinote-eln/scinote-web.git
				synced 2025-10-31 08:26:31 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
	
		
			547 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
	
		
			547 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| export default {
 | |
|   mounted() {
 | |
|     this.initOVE();
 | |
|   },
 | |
|   computed: {
 | |
|     OVEurl() {
 | |
|       if (this.step) {
 | |
|         return this.step.attributes.open_vector_editor_context.new_sequence_asset_url;
 | |
|       } else if (this.result) {
 | |
|         return this.result.attributes.open_vector_editor_context.new_sequence_asset_url;
 | |
|       }
 | |
|     }
 | |
|   },
 | |
|   methods: {
 | |
|     openOVEditor() {
 | |
|       window.showIFrameModal(this.OVEurl);
 | |
|     },
 | |
|     initOVE() {
 | |
|       $(window.iFrameModal).on('sequenceSaved', () => {
 | |
|         this.loadAttachments();
 | |
|       });
 | |
|     },
 | |
|   }
 | |
| };
 |