Browse Source

更新登录接口路径

wuyi 2 tuần trước cách đây
mục cha
commit
fc9efba33a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/services/api.js

+ 1 - 1
src/services/api.js

@@ -36,7 +36,7 @@ api.interceptors.response.use(
 )
 
 export const login = async (name, password) => {
-  const response = await api.post('/users/login', {
+  const response = await api.post('/users/admin-login', {
     name,
     password
   })