|
@@ -71,6 +71,9 @@
|
|
|
uni.getStorage({
|
|
|
key: storagekey,
|
|
|
success: function(res) {
|
|
|
+ if (storagekey === 'baseUrl') {
|
|
|
+ baseUrl.value = res.data;
|
|
|
+ }
|
|
|
if (storagekey !== 'token' && storagekey !== '__DC_STAT_UUID' &&
|
|
|
storagekey !== 'baseUrl') {
|
|
|
getNickNameByUserName(storagekey).then((response) => {
|
|
@@ -83,9 +86,6 @@
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- if(storagekey === 'baseUrl'){
|
|
|
- baseUrl.value = res.data;
|
|
|
- }
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -110,8 +110,13 @@
|
|
|
icon: "success",
|
|
|
title: "设置成功"
|
|
|
})
|
|
|
- }
|
|
|
+ },
|
|
|
});
|
|
|
+ // 刷新当前页面重新加载一下()
|
|
|
+ // uni.navigateBack({
|
|
|
+ // delta: 1
|
|
|
+ // })
|
|
|
+ refresh();
|
|
|
showInput.value = !showInput.value;
|
|
|
} else {
|
|
|
uni.showToast({
|
|
@@ -121,6 +126,16 @@
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ function refresh() {
|
|
|
+ // 刷新当前页面
|
|
|
+ var pages = getCurrentPages(); //获取所有页面的数组对象
|
|
|
+ var currPage = pages[pages.length - 1]; //当前页面
|
|
|
+ uni.reLaunch({
|
|
|
+ url: currPage.$page.fullPath
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
const handleShowLoginDialog = (user) => {
|
|
|
let _user = user ?? {}
|
|
|
// 调用子组件中的方法
|
|
@@ -178,13 +193,13 @@
|
|
|
.page-container {
|
|
|
overflow: auto;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.logo {
|
|
|
width: 120rpx;
|
|
|
height: 120rpx;
|
|
|
margin: 0 auto;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.title {
|
|
|
height: 80rpx;
|
|
|
justify-content: center;
|