- Vue3
- Vue Composition API
- Vue Router - The official router for Vue.js
- Pinia - The Vue Store that you will enjoy using
- Axios - Promise based HTTP client for the browser and node.js
- I18ns - Vue I18n is internationalization plugin for Vue.js
- Husky - Modern native git hooks made easy
- Icon - Google font icon
VSCode + ESLint + Prettier + Volar + Editor Config
Node >= 16
<br>
VITE_BASE_URL=
VITE_I18N_FALLBACK_LOCALE=en
VITE_I18N_LOCALE=en
npm install
npm run dev
npm run build & npm run preview
npm run lint
npm run format
import { useStore } from '@/store'
const store = useStore()
const isLoading = ref(false)
onMounted(async () => {
await fetchPhoto()
})
const fetchPhoto = async () => {
isLoading.value = true
try {
await store.fetchPhoto()
const response = store.photo
console.log(response)
isLoading.value = false
} catch (error) {
console.error(error)
isLoading.value = false
}
}