Browse Source

环境提交

master
蟑螂恶霸 2 years ago
parent
commit
53ec327c98
  1. 3
      main.js
  2. 1
      pages/index/index.vue
  3. 3
      utils/config.js

3
main.js

@ -15,7 +15,8 @@ Vue.prototype.$api = api
// $http.baseUrl = 'http://146.56.223.227:85'
$http.baseUrl = 'https://civildrill.com:9528'
// $http.baseUrl = 'http://localhost:85'
// $http.baseUrl = 'http://civildrill.com:85'
// $http.baseUrl = 'http://127.0.0.1:85'
$http.beforeRequest = function(options) {
uni.showLoading({

1
pages/index/index.vue

@ -107,7 +107,6 @@
data: res
} = await uni.$http.post('/small/customImage/listAll',{page:"home"})
if (!res.success) return uni.$showMsg()
res.data.forEach(item => {
item.uploadPath = uni.$http.baseUrl + item.uploadPath
if (item.position === "top") {

3
utils/config.js

@ -1,4 +1,5 @@
// let url_config = 'http://146.56.223.227:85/'
let url_config = 'https://civildrill.com:9528/'
// let url_config = 'http://localhost:85/'
// let url_config = 'http://civildrill.com:85/'
// let url_config = 'http://127.0.0.1:85/'
export default url_config
Loading…
Cancel
Save