diff --git a/config.js b/config.js index 43ba9a3..c04a0d5 100644 --- a/config.js +++ b/config.js @@ -1,9 +1,9 @@ // 应用全局配置 module.exports = { // baseUrl: 'https://vue.ruoyi.vip/prod-api', - - baseUrl: 'http://localhost:48080/admin-api', - imagesUrl: 'http://localhost:48080/admin-api', + baseUrl: 'http://192.168.1.18:48080/admin-api', + //baseUrl: 'https://www.nuoyunr.com/jx', + imagesUrl: 'https://www.nuoyunr.com/jx', //baseUrl: 'http://192.168.31.54:8016/jx', //baseUrl: 'http://192.168.31.54:8016/jx', //imagesUrl: 'http://192.168.31.54:8016/jx', diff --git a/manifest.json b/manifest.json index 1313231..4820ee0 100644 --- a/manifest.json +++ b/manifest.json @@ -107,5 +107,20 @@ "uniStatistics" : { "enable" : false }, - "vueVersion" : "2" + "vueVersion" : "2", + "h5" : { + "router" : { + "mode" : "hash", + "base" : "./" + }, + "devServer" : { + "port" : 80 + }, + "optimization" : { + "treeShaking" : { + "enable" : true + } + }, + "title" : "孑医测评" + } } diff --git a/pages/login/loginSms.vue b/pages/login/loginSms.vue index 3efc85c..10be3d6 100644 --- a/pages/login/loginSms.vue +++ b/pages/login/loginSms.vue @@ -131,12 +131,12 @@ } this.appuser.type = 0 request({ - url: '/system/auth/loginApp', + url: '/loginApp', method: 'post', data: this.appuser }).then((res) => { - if (res.code == 0) { - uni.setStorageSync("App-Token", res.data.accessToken) + if (res.code == 200) { + uni.setStorageSync("App-Token", res.token) if (this.tabindex == 0) { uni.navigateTo({ url: "/pages/index/index"