Table summary of orders
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user