mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 11:08:04 +00:00 
			
		
		
		
	 8e9b21820e
			
		
	
	8e9b21820e
	
	
	
		
			
			* feat: setup vuelitdate for vue 2.7 * feat: add all composables * feat: return track method --------- Co-authored-by: Muhsin Keloth <muhsinkeramam@gmail.com>
		
			
				
	
	
		
			13 lines
		
	
	
		
			291 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			291 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| import { getCurrentInstance } from 'vue';
 | |
| 
 | |
| export const useTrack = () => {
 | |
|   const vm = getCurrentInstance();
 | |
|   if (!vm) throw new Error('must be called in setup');
 | |
| 
 | |
|   return vm.proxy.$track;
 | |
| };
 | |
| 
 | |
| export function useAlert(message, action) {
 | |
|   bus.$emit('newToastMessage', message, action);
 | |
| }
 |