配置全局变量
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import http from './http.js'
|
||||
let baseUrl = http.baseUrl
|
||||
let URL_CONFIG = http.URL_CONFIG
|
||||
import { baseUrl, URL_CONFIG } from '../project.config'
|
||||
|
||||
/* 配置路径 */
|
||||
|
||||
|
||||
@@ -10,8 +10,6 @@ let apiUrl = {
|
||||
}
|
||||
|
||||
export default {
|
||||
baseUrl,
|
||||
URL_CONFIG,
|
||||
//微信账号密码登陆--1
|
||||
wxLoginByUserName(option, success, error) {
|
||||
http.post1(baseUrl + apiUrl.wxLoginByUserName, option).then(res => {
|
||||
@@ -39,8 +37,3 @@ export default {
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
export{
|
||||
baseUrl,
|
||||
URL_CONFIG
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user