|
@@ -1823,18 +1823,21 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
1823
|
1823
|
$rootScope.logout = function () {
|
1824
|
1824
|
// var userid =data.id;
|
1825
|
1825
|
// console.log(' userid='+JSON.stringify( userid));
|
1826
|
|
-
|
1827
|
|
- // $auth.signOut()
|
1828
|
|
- // .then(function(resp) {
|
1829
|
|
- // // $auth.deleteData('auth_headers')
|
1830
|
|
- // sessionStorage.clear();
|
1831
|
|
- // localStorage.clear();
|
1832
|
|
- // $state.go("login.signin");
|
1833
|
|
- // })
|
1834
|
|
- // .catch(function(resp) {});
|
1835
|
|
- sessionStorage.clear();
|
1836
|
|
- localStorage.clear();
|
1837
|
|
- location.href = 'http://' + location.hostname + ':8080/pc_logout.jsp'
|
|
1826
|
+ //单点登录
|
|
1827
|
+ if (localStorage.getItem('isSSo') === '1') {
|
|
1828
|
+ sessionStorage.clear();
|
|
1829
|
+ localStorage.clear();
|
|
1830
|
+ location.href = 'http://' + location.hostname + ':8080/pc_logout.jsp'
|
|
1831
|
+ } else {
|
|
1832
|
+ $auth.signOut()
|
|
1833
|
+ .then(function (resp) {
|
|
1834
|
+ // $auth.deleteData('auth_headers')
|
|
1835
|
+ sessionStorage.clear();
|
|
1836
|
+ localStorage.clear();
|
|
1837
|
+ $state.go("login.signin");
|
|
1838
|
+ })
|
|
1839
|
+ .catch(function (resp) { });
|
|
1840
|
+ }
|
1838
|
1841
|
|
1839
|
1842
|
|
1840
|
1843
|
//$cookieStore.remove("userObm");
|