Table summary of orders

This commit is contained in:
2024-07-12 17:11:52 +02:00
parent 200242252c
commit bbec759b08
16 changed files with 414 additions and 136 deletions

View File

@@ -12,15 +12,12 @@ const schema = Yup.object().shape({
});
async function onSubmit(values : any, { setErrors } : any) {
const { username, password, errors } = values;
console.log(username + ' ' + password);
const { username, password } = values;
const body = await axiosInstance.post('/login', {
username: username,
password: password
}).catch ((error) => {
console.log(error.response);
if(error.response.status == 401) {
setErrors({ apiError: "unauthorized" })
}
@@ -77,7 +74,3 @@ async function onSubmit(values : any, { setErrors } : any) {
</div>
</template>
<style scoped>
</style>