refactor: refactor api usage

This commit is contained in:
张传龙
2022-07-25 18:36:22 +08:00
parent e5768fa1e3
commit 7762e02b31
11 changed files with 34 additions and 101 deletions

5
src/views/login/api.js Normal file
View File

@@ -0,0 +1,5 @@
import request from '@/utils/http'
export default {
login: (data) => request.post('/auth/login', data),
}