added path control for vueJS method.
This commit is contained in:
		
							
								
								
									
										8
									
								
								resources/assets/js/mixins/global.js
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										8
									
								
								resources/assets/js/mixins/global.js
									
									
									
									
										vendored
									
									
								
							| @@ -505,6 +505,10 @@ export default { | ||||
|  | ||||
|         // Dynamic component get path view and show it. | ||||
|         onDynamicComponent(path) { | ||||
|             if (! path) { | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             axios.get(path) | ||||
|             .then(response => { | ||||
|                 let html = response.data.html; | ||||
| @@ -562,6 +566,10 @@ export default { | ||||
|         }, | ||||
|  | ||||
|         onDynamicFormParams(path, params) { | ||||
|             if (! path) { | ||||
|                 return; | ||||
|             } | ||||
|  | ||||
|             let data = {}; | ||||
|  | ||||
|             for (const [key, value] of Object.entries(params)) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user