Skip to content
Snippets Groups Projects
Commit fc99edd4 authored by Morgan Li's avatar Morgan Li
Browse files

change localhost to ip

parent 318bbba5
No related branches found
No related tags found
1 merge request!8Init more page
......@@ -48,7 +48,7 @@ export default function Login ({ navigation, route }) {
},
body: JSON.stringify({ user_id: user.username, password: password})
}
fetch('http://localhost:5000/auth',request)
fetch('http://127.0.0.1:5000/auth',request)
.then(response => {
if(!response.ok) throw new Error(response.statusText);
else {
......@@ -59,6 +59,7 @@ export default function Login ({ navigation, route }) {
})
}
});
navigation.navigate('Tab')
}}
/>
</View>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment