连接后端的category/list接口
Change-Id: I8077f1fe25b0f453b7b07c9bfe4be92f983bff56
diff --git a/src/api/auth.js b/src/api/auth.js
index a3c672a..b0f11aa 100644
--- a/src/api/auth.js
+++ b/src/api/auth.js
@@ -13,7 +13,7 @@
}
return request({
- url: '/api/auth/login', // 需要 /api 前缀
+ url: '/auth/login', // 需要 /api 前缀
method: 'post',
data: requestData
})
@@ -32,7 +32,7 @@
}
return request({
- url: '/api/auth/register', // 需要 /api 前缀
+ url: '/auth/register', // 需要 /api 前缀
method: 'post',
data: requestData
})
@@ -43,7 +43,7 @@
*/
logout() {
return request({
- url: '/api/auth/logout', // 需要 /api 前缀
+ url: '/auth/logout', // 需要 /api 前缀
method: 'post'
})
},
@@ -53,7 +53,7 @@
*/
getStatus() {
return request({
- url: '/api/auth/status', // 需要 /api 前缀
+ url: '/auth/status', // 需要 /api 前缀
method: 'get'
})
}