From 0a6292a08bc29e6e3139483cbe85349a0b511f81 Mon Sep 17 00:00:00 2001 From: user <111111> Date: Mon, 6 Jan 2020 18:34:52 +0800 Subject: [PATCH] 111111111111111111 --- src/App.vue | 6 ++++-- src/common/config.js | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/App.vue b/src/App.vue index 436513a..91931b9 100644 --- a/src/App.vue +++ b/src/App.vue @@ -3,13 +3,15 @@ export default { onLaunch: function() { - console.log('App Launch') + console.info('App Launch,检测服务端'+config.server+'配置') + let url=config.server+'/api/test.php' + console.info('服务端测试接口:'+url) uni.showLoading({ title:"检测服务端中" }) let test=false uni.request({ - url:config.server+'/api/test.php', + url:url, success:function (res) { console.info(res) if(res.data==="ok"){ diff --git a/src/common/config.js b/src/common/config.js index d16c566..4cf8854 100644 --- a/src/common/config.js +++ b/src/common/config.js @@ -1,7 +1,7 @@ export var config={ //服务器地址 - server:"http://127.0.0.1", + server:"http://192.168.43.136", // 接口 interface:{ //图片解析