From 3933f2736aea7d9bcabecae636461026d1746f13 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 15 十二月 2022 17:04:28 +0800
Subject: [PATCH] #
---
pages/login/login.vue | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/pages/login/login.vue b/pages/login/login.vue
index bd3159a..d03e312 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -65,7 +65,7 @@
onLogin() {
let that = this
uni.request({
- url: 'http://127.0.0.1:9528/login.action',
+ url: 'http://localhost:9528/login.action',
fail(result) {
uni.showToast({title: '璇锋眰澶辫触'})
},
@@ -83,6 +83,7 @@
that.load.btnText = '鐧诲綍涓�';
uni.setStorageSync('token', res.data.token);
uni.setStorageSync('userName', that.user.userName);
+ uni.setStorageSync('baseUrl','http://localhost:9528')
setTimeout(()=> {
uni.showToast({title: '鐧诲綍鎴愬姛'})
setTimeout(()=> {
--
Gitblit v1.9.1