|
|
@@ -96,11 +96,12 @@ define([ 'app/app' ], function(app) {
|
|
|
};
|
|
|
|
|
|
// 切换企业
|
|
|
- $scope.switchto = function(en) {
|
|
|
- AuthenticationService.reSignin(en.uu).success(function(){
|
|
|
+ $scope.switchto = function(enUU) {
|
|
|
+ AuthenticationService.reSignin(enUU).success(function(){
|
|
|
//$window.location.reload();
|
|
|
- if (!en.uu || en.uu == '0'){
|
|
|
- if (window.location.href.contains('vendor')){
|
|
|
+ if (!enUU || enUU == '0'){
|
|
|
+ var now = window.location.href.toString();
|
|
|
+ if (now.indexOf('vendor') > -1){
|
|
|
location.href = './register-saler';
|
|
|
return;
|
|
|
}
|