资源tab定位

This commit is contained in:
txz 2016-07-22 16:44:16 +08:00
parent 7d2ba823e9
commit c4f4908c62
1 changed files with 4 additions and 1 deletions

View File

@ -137,8 +137,11 @@ app.controller('MyResourceController', ['$scope', '$http', 'auth', 'config', '$l
} }
break; break;
} }
rms.save("resource_tab_num",vm.currentTab);
} }
vm.tab(1); var currentTab = rms.get('resource_tab_num') || 1;
vm.tab(currentTab);
}] ); }] );