用户中心未登录也请求接口处理

master
gongfuxiang 2024-11-09 22:37:13 +08:00
parent a591407561
commit 65b02c2122
1 changed files with 6 additions and 15 deletions

View File

@ -484,22 +484,10 @@
//
remove_user_cache_event(e) {
//
var temp_head_nav = this.head_nav_list;
if(temp_head_nav.length > 0) {
for(var i in temp_head_nav) {
temp_head_nav[i]['count'] = 0;
}
}
//
this.setData({
message_total: 0,
navigation: [],
head_nav_list: temp_head_nav,
main_navigation_data: [],
user: null,
avatar: app.globalData.data.default_user_head_src,
nickname: this.$t('login.login.6yfr9g'),
nickname: '',
// #ifdef APP || H5
nav_logout_data: null,
// #endif
@ -507,9 +495,12 @@
//
app.globalData.remove_user_cache_event();
//
this.set_resources_data();
//
app.globalData.set_tab_bar_badge('cart');
//
this.get_data();
},
//