Commit a6ade69f authored by shilei's avatar shilei

feat: 更改接口请求地址

parent c361f8b1
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -72,6 +72,7 @@ ...@@ -72,6 +72,7 @@
"core-js": "^3.8.3", "core-js": "^3.8.3",
"flyio": "^0.6.2", "flyio": "^0.6.2",
"qs": "^6.11.2", "qs": "^6.11.2",
"umtrack-wx": "^2.8.0",
"uview-ui": "^2.0.36", "uview-ui": "^2.0.36",
"vue": ">= 2.6.14 < 2.7", "vue": ">= 2.6.14 < 2.7",
"vuex": "^3.2.0" "vuex": "^3.2.0"
......
let baseUrl; let baseUrl;
switch (process.env.VUE_APP_ENV) { switch (process.env.VUE_APP_ENV) {
case 'production': case "production":
baseUrl = 'https://prod.postcard-api.liyeyun.com.cn' baseUrl = "https://prod-postcard-api.liyeyun.com";
break; break;
case 'development': case "development":
baseUrl = 'https://test.postcard-api.liyeyun.com.cn' baseUrl = "https://test.postcard-api.liyeyun.com.cn";
break; break;
} }
export default baseUrl export default baseUrl;
\ No newline at end of file
...@@ -4,8 +4,22 @@ import './uni.promisify.adaptor' ...@@ -4,8 +4,22 @@ import './uni.promisify.adaptor'
import fetch from './utils/request.js' import fetch from './utils/request.js'
import store from './store' import store from './store'
import VueCompositionAPI from '@vue/composition-api' import VueCompositionAPI from '@vue/composition-api'
import uma from 'umtrack-wx';
import uView from 'uview-ui' import uView from 'uview-ui'
// import '@/utils/filters.js';
// 友盟统计
uma.init({
appKey: '659f45d7a7208a5af19aef3e',
useOpenid: true,
autoGetOpenid: true,
debug: true,
uploadUserInfo: true
});
uma.install = function (Vue) {
Vue.prototype.$uma = uma;
}
Vue.use(uma);
Vue.use(uView) Vue.use(uView)
// 如此配置即可 // 如此配置即可
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment