Cleanup
This commit is contained in:
parent
728d77bc14
commit
ff54944024
2 changed files with 19 additions and 1 deletions
|
|
@ -2,7 +2,6 @@
|
|||
@use '/src/styles/breakpoint.sass' as views
|
||||
|
||||
h1
|
||||
font-size: 3.25rem
|
||||
color: vars.$textColor
|
||||
|
||||
@media only screen and (max-width: views.$mobile)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,26 @@
|
|||
import './Index.sass'
|
||||
import { Button, Page, Padding, Display, Row, Logo, Column, Box } from '../../components'
|
||||
import { onMount } from 'solid-js'
|
||||
import { ofetch } from 'ofetch'
|
||||
|
||||
const API = 'http://localhost:4320/api/'
|
||||
let assessorsNameList: string[]
|
||||
|
||||
export default () => {
|
||||
const getAssessors = async () => {
|
||||
try {
|
||||
const assessors = await ofetch(API + 'get-list-assessors', { parseResponse: JSON.parse })
|
||||
assessorsNameList = [...assessors.result2]
|
||||
} catch (error) {
|
||||
console.error(error)
|
||||
}
|
||||
sessionStorage.setItem('assessors', JSON.stringify([...assessorsNameList]))
|
||||
}
|
||||
|
||||
onMount(async () => {
|
||||
await getAssessors()
|
||||
})
|
||||
|
||||
return (
|
||||
<>
|
||||
<Page>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue