From 6476c0846ee67126ec6e4f7a8e3b063b25e5c24b Mon Sep 17 00:00:00 2001 From: qzc Date: Sat, 18 Apr 2026 11:26:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 2 +- pages/homeIndex/headerUser.vue | 2 +- pages/homeIndex/index.vue | 2 +- pages/login/login.vue | 4 ++-- pages/modifyPassword/modifyPassword.vue | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main.js b/main.js index 963f1c1..670e166 100644 --- a/main.js +++ b/main.js @@ -10,7 +10,7 @@ import { Vue.config.productionTip = false uni.$http = $http // $http.baseUrl = 'http://36.139.207.50:18083' -$http.baseUrl = 'http://223.75.53.124:8002/chibirsvr/sys' +$http.baseUrl = 'http://223.75.53.124:8002/chibirsvr' // 请求拦截器 $http.beforeRequest = function(options) { // uni.showLoading({ diff --git a/pages/homeIndex/headerUser.vue b/pages/homeIndex/headerUser.vue index b871763..9a11268 100644 --- a/pages/homeIndex/headerUser.vue +++ b/pages/homeIndex/headerUser.vue @@ -47,7 +47,7 @@ export default { methods: { async getSwiperList() { try { - const res = await uni.$http.get("/getLoginInfo"); + const res = await uni.$http.get("/sys/getLoginInfo"); console.log("--c-", res.data); this.userList = res.data; diff --git a/pages/homeIndex/index.vue b/pages/homeIndex/index.vue index 438a509..a7089d7 100644 --- a/pages/homeIndex/index.vue +++ b/pages/homeIndex/index.vue @@ -114,7 +114,7 @@ export default { methods: { async getSwiperList() { try { - const res = await uni.$http.get("/getLoginInfo"); + const res = await uni.$http.get("/sys/getLoginInfo"); console.log("--1-", res.data); this.userList = res.data; diff --git a/pages/login/login.vue b/pages/login/login.vue index da1d232..5a4c3c2 100644 --- a/pages/login/login.vue +++ b/pages/login/login.vue @@ -156,14 +156,14 @@ export default { //提交表单 - uni.$http.post('/doLogin', postForm).then(res => { + uni.$http.post('/sys/doLogin', postForm).then(res => { uni.showLoading({ title: '努力登录中...', mask: true }) if (res.data.code === 200) { //localStorage保存token if (res.data.data) { uni.setStorageSync('Gs-Token', res.data.data) - uni.$http.get('/getLoginInfo').then(res => { + uni.$http.get('/sys/getLoginInfo').then(res => { console.log('sss', res.data.data) uni.setStorageSync('value', res.data.data) console.log('-----value------', res.data.data) diff --git a/pages/modifyPassword/modifyPassword.vue b/pages/modifyPassword/modifyPassword.vue index f0c611d..9d1ce8c 100644 --- a/pages/modifyPassword/modifyPassword.vue +++ b/pages/modifyPassword/modifyPassword.vue @@ -60,7 +60,7 @@ new_params.userId = uni.getStorageSync('value').userId // console.log(formData) - uni.$http.post('/user/updateSecretKey',new_params).then(res=>{ + uni.$http.post('/sys/user/updateSecretKey',new_params).then(res=>{ console.log(res); if (res.data.code === 200) { uni.showToast({