| | |
| | | <userLogin v-if="activeName==='user'"></userLogin> |
| | | <thirdLogin v-else-if="activeName==='third'"></thirdLogin> |
| | | <div class="login-menu"> |
| | | <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> |
| | | <!-- <a href="#" @click.stop="activeName='user'">{{ $t('login.userLogin') }}</a> --> |
| | | <!--<a href="#" @click.stop="activeName='code'">{{ $t('login.phoneLogin') }}</a>--> |
| | | <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> |
| | | <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> |
| | | <!-- <a href="#" @click.stop="activeName='third'">{{ $t('login.thirdLogin') }}</a> --> |
| | | <!-- <a :href="website.ssoUrl + website.redirectUri">{{ $t('login.ssoLogin') }}</a> --> |
| | | <a href="#" @click="openAnotherProject">打开另一个项目</a> |
| | | </div> |
| | | </div> |
| | | |
| | |
| | | loading.close(); |
| | | }); |
| | | } |
| | | }, |
| | | |
| | | openAnotherProject() { |
| | | const headers = { |
| | | 'headerName': 'headerValue' |
| | | }; |
| | | const queryString = Object.keys(headers).map(key => key + '=' + headers[key]).join('&'); |
| | | const url = 'http://localhost:38000/#/sso?' + queryString; |
| | | window.open(url); |
| | | } |
| | | |
| | | } |
| | | }; |
| | | </script> |