chore: optimize services model;🌟

This commit is contained in:
iczer
2020-08-08 21:51:18 +08:00
parent d741904f50
commit 45d62e4860
10 changed files with 33 additions and 26 deletions

View File

@@ -7,8 +7,7 @@ const user = Mock.mock({
address: '@CITY',
position: '@POSITION'
})
Mock.mock('/login', 'post', ({body}) => {
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/login`, 'post', ({body}) => {
let result = {}
const {name, password} = JSON.parse(body)

View File

@@ -1,6 +1,6 @@
import Mock from 'mockjs'
Mock.mock('/routes', 'get', () => {
Mock.mock(`${process.env.VUE_APP_API_BASE_URL}/routes`, 'get', () => {
let result = {}
result.code = 0
result.data = [{