Browse Source

fix posting params

Nivek 2 years ago
parent
commit
6e579a2ab3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/components/Login.vue

+ 1 - 1
src/components/Login.vue

@@ -33,7 +33,7 @@
   async function handleLogin() {
 
     try {
-      const response = await axios.post('/user/login', {
+      const response = await axios.post('/user/login', null, {
         params: {
           phone: tel.value,
           password: password.value,