Skip to content

Commit

Permalink
remove before enter fetch to before mount
Browse files Browse the repository at this point in the history
  • Loading branch information
plecrx committed Jan 13, 2024
1 parent 53829c2 commit c953a1c
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion src/pages/home-page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,18 @@ import PageLayout from '@/layouts/page-layout.vue'
import { useRandomIntegersStore } from '@/stores/useRandomIntegers.store.ts'
import { storeToRefs } from 'pinia'
import { onBeforeMount } from 'vue'
import { SearchRandomIntegersParams } from '../features/integersList/searchRandomIntegers.ts'
const { integersArray } = storeToRefs(useRandomIntegersStore())
const { searchIntegers } = useRandomIntegersStore()
const params = { num: 100, min: 0, max: 10, col: 1, base: 10, format: 'plain' }
const params: SearchRandomIntegersParams = {
num: 100,
min: 0,
max: 10,
col: 1,
base: 10,
format: 'plain'
}
const handleSearchButtonClick = () => {
searchIntegers(params)
}
Expand Down

0 comments on commit c953a1c

Please sign in to comment.