From 3926e85d6eb727a03206242523f91466968b06df Mon Sep 17 00:00:00 2001 From: zhuchunyun Date: Wed, 28 Aug 2024 16:05:32 +0800 Subject: [PATCH] init --- config.js | 6 +++--- manifest.json | 17 ++++++++++++++++- pages/login/loginSms.vue | 6 +++--- 3 files changed, 22 insertions(+), 7 deletions(-) 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"