Small changes and fixes, highlight days on the calendar
This commit is contained in:
		
							
								
								
									
										15
									
								
								src/App.vue
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								src/App.vue
									
									
									
									
									
								
							@@ -1,28 +1,17 @@
 | 
			
		||||
<template>
 | 
			
		||||
  <Suspense>
 | 
			
		||||
    <RouterView />
 | 
			
		||||
    <RouterView class="has-navbar-fixed-top"/>
 | 
			
		||||
  </Suspense>
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<script setup lang="ts">
 | 
			
		||||
import './assets/style.scss'
 | 
			
		||||
import './assets/print.css'
 | 
			
		||||
import { RouterView } from 'vue-router'
 | 
			
		||||
import { watch } from 'vue'
 | 
			
		||||
import { getActivePinia } from 'pinia'
 | 
			
		||||
 | 
			
		||||
const pinia = getActivePinia();
 | 
			
		||||
 | 
			
		||||
if(pinia != undefined) {
 | 
			
		||||
  watch(
 | 
			
		||||
    pinia.state,
 | 
			
		||||
    (state) => {
 | 
			
		||||
      // persist the whole state to the local storage whenever it changes
 | 
			
		||||
      localStorage.setItem('piniaState', JSON.stringify(state))
 | 
			
		||||
    },
 | 
			
		||||
    { deep: true }
 | 
			
		||||
  );
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
</script>
 | 
			
		||||
 | 
			
		||||
<style>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user