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