mirror of
https://gitee.com/JavaLionLi/plus-ui.git
synced 2026-01-13 06:04:21 +08:00
update 优化 更改方法命名避免误会
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
import request from '@/utils/request';
|
import request from '@/utils/request';
|
||||||
|
|
||||||
// 绑定账号
|
// 获取跳转URL
|
||||||
export function authBinding(source: string, tenantId: string) {
|
export function authRouterUrl(source: string, tenantId: string) {
|
||||||
return request({
|
return request({
|
||||||
url: '/auth/binding/' + source,
|
url: '/auth/binding/' + source,
|
||||||
method: 'get',
|
method: 'get',
|
||||||
|
|||||||
@@ -80,7 +80,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { getCodeImg, getTenantList } from '@/api/login';
|
import { getCodeImg, getTenantList } from '@/api/login';
|
||||||
import { authBinding } from '@/api/system/social/auth';
|
import { authRouterUrl } from '@/api/system/social/auth';
|
||||||
import { useUserStore } from '@/store/modules/user';
|
import { useUserStore } from '@/store/modules/user';
|
||||||
import { LoginData, TenantVO } from '@/api/types';
|
import { LoginData, TenantVO } from '@/api/types';
|
||||||
import { to } from 'await-to-js';
|
import { to } from 'await-to-js';
|
||||||
@@ -215,7 +215,7 @@ const initTenantList = async () => {
|
|||||||
* @param type
|
* @param type
|
||||||
*/
|
*/
|
||||||
const doSocialLogin = (type: string) => {
|
const doSocialLogin = (type: string) => {
|
||||||
authBinding(type, loginForm.value.tenantId).then((res: any) => {
|
authRouterUrl(type, loginForm.value.tenantId).then((res: any) => {
|
||||||
if (res.code === HttpStatus.SUCCESS) {
|
if (res.code === HttpStatus.SUCCESS) {
|
||||||
// 获取授权地址跳转
|
// 获取授权地址跳转
|
||||||
window.location.href = res.data;
|
window.location.href = res.data;
|
||||||
|
|||||||
Reference in New Issue
Block a user