浏览代码

测环境,退出直接清缓存退出,然后在请求后台

qzyReal 1 年之前
父节点
当前提交
6acbb8a0c4
共有 2 个文件被更改,包括 7 次插入6 次删除
  1. 2 2
      common/http.js
  2. 5 4
      pages/personal/personal.vue

+ 2 - 2
common/http.js

@@ -1,5 +1,5 @@
-const ip = 'http://192.168.88.34:8080'; //线下
-//const ip = 'http://114.118.9.159:8080/prod-api'; //线上
+// const ip = 'http://192.168.88.12:8080'; //线下
+const ip = 'http://hs-server.aseanbusiness.cn'; //线上
 /**
  * 封装的http请求
  */

+ 5 - 4
pages/personal/personal.vue

@@ -230,14 +230,15 @@ export default {
 				content: '确定注销登录?',
 				success: res => {
 					if (res.confirm) {
+						uni.removeStorageSync('token');
+						uni.removeStorageSync('info');
+						uni.removeStorageSync('menu');
+						uni.redirectTo({ url: '/pages/login/login' });
 						this.http.request({
 							url: '/sp-admin/app/AppUser/logout',
 							data: param,
 							success: res => {
-								uni.removeStorageSync('token');
-								uni.removeStorageSync('info');
-								uni.removeStorageSync('menu');
-								uni.redirectTo({ url: '/pages/login/login' });
+							
 							}
 						});
 					}