diff --git a/public/javascripts/wechat/controllers/myresource.js b/public/javascripts/wechat/controllers/myresource.js index 15428bb34..4ad5c66a7 100644 --- a/public/javascripts/wechat/controllers/myresource.js +++ b/public/javascripts/wechat/controllers/myresource.js @@ -137,8 +137,11 @@ app.controller('MyResourceController', ['$scope', '$http', 'auth', 'config', '$l } break; } + rms.save("resource_tab_num",vm.currentTab); } - vm.tab(1); + var currentTab = rms.get('resource_tab_num') || 1; + + vm.tab(currentTab); }] );