111111111111111111

master
user 4 years ago
parent c779dfd775
commit 0a6292a08b
  1. 6
      src/App.vue
  2. 2
      src/common/config.js

@ -3,13 +3,15 @@
export default { export default {
onLaunch: function() { onLaunch: function() {
console.log('App Launch') console.info('App Launch,检测服务端'+config.server+'配置')
let url=config.server+'/api/test.php'
console.info('服务端测试接口:'+url)
uni.showLoading({ uni.showLoading({
title:"检测服务端中" title:"检测服务端中"
}) })
let test=false let test=false
uni.request({ uni.request({
url:config.server+'/api/test.php', url:url,
success:function (res) { success:function (res) {
console.info(res) console.info(res)
if(res.data==="ok"){ if(res.data==="ok"){

@ -1,7 +1,7 @@
export var config={ export var config={
//服务器地址 //服务器地址
server:"http://127.0.0.1", server:"http://192.168.43.136",
// 接口 // 接口
interface:{ interface:{
//图片解析 //图片解析

Loading…
Cancel
Save