refactor(pages): add getSession call to new story page
				
					
				
			This commit is contained in:
		
							parent
							
								
									bb61075d87
								
							
						
					
					
						commit
						0c038fe708
					
				@ -2,6 +2,9 @@
 | 
				
			|||||||
	import storyForm from "~/components/story/create/storyForm.vue";
 | 
						import storyForm from "~/components/story/create/storyForm.vue";
 | 
				
			||||||
	import { defaultStory } from "@client/types/form/story";
 | 
						import { defaultStory } from "@client/types/form/story";
 | 
				
			||||||
	const ds = ref(defaultStory);
 | 
						const ds = ref(defaultStory);
 | 
				
			||||||
 | 
						const { getSession } = useAuth();
 | 
				
			||||||
 | 
						await getSession({ force: true });
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	definePageMeta({
 | 
						definePageMeta({
 | 
				
			||||||
		middleware: ["auth"],
 | 
							middleware: ["auth"],
 | 
				
			||||||
	});
 | 
						});
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user