配置全局变量

This commit is contained in:
姚亚男
2021-11-01 11:33:52 +08:00
parent 180ea3f9cc
commit fa409f4b4c
16 changed files with 39 additions and 48 deletions
+2 -9
View File
@@ -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
}