| | |
| | | <router-link class="link-type" :to="'/register'">立即注册</router-link> |
| | | </div> |
| | | </el-form-item> |
| | | <el-button v-if="false" type="primary" plain @click="goLogin">集团集成登录</el-button> |
| | | <el-button v-if="true" type="primary" plain @click="goLogin">集团集成登录</el-button> |
| | | </el-form> |
| | | </div> |
| | | <!-- 底部 --> |
| | |
| | | }, |
| | | methods: { |
| | | async goLogin() { |
| | | const { |
| | | data: { data }, |
| | | } = await getSsoAuthUrl() |
| | | window.location.href = data |
| | | // this.$router.push({ path: '/thirdpartylogin' }) |
| | | await getSsoAuthUrl().then(res => { |
| | | window.location.href = res.data |
| | | }) |
| | | }, |
| | | getCode() { |
| | | getCodeImg().then(res => { |
| | |
| | | computed: {}, |
| | | methods: { |
| | | async goLogin() { |
| | | const { |
| | | data: { data } |
| | | } = await getSsoAuthUrl() |
| | | window.location.href = data |
| | | await getSsoAuthUrl().then(res => { |
| | | window.location.href = res.data |
| | | }) |
| | | } |
| | | } |
| | | } |