From c4f4908c6238379787f58f7e7013e06167f215ee Mon Sep 17 00:00:00 2001 From: txz Date: Fri, 22 Jul 2016 16:44:16 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B5=84=E6=BA=90tab=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/wechat/controllers/myresource.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }] );