mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-27 01:32:03 +08:00
fix
This commit is contained in:
parent
d8be452fd8
commit
e76a6f814f
@ -222,7 +222,7 @@ const filterFormSchema = (crudSchema: VxeCrudSchema): FormSchema[] => {
|
|||||||
|
|
||||||
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
|
eachTree(crudSchema.columns, (schemaItem: VxeCrudColumns) => {
|
||||||
// 判断是否显示
|
// 判断是否显示
|
||||||
if (schemaItem?.isForm !== false) {
|
if (schemaItem?.isForm !== false || schemaItem?.form?.show == true) {
|
||||||
// 默认为 input
|
// 默认为 input
|
||||||
let component = schemaItem?.form?.component || 'Input'
|
let component = schemaItem?.form?.component || 'Input'
|
||||||
const options: ComponentOptions[] = []
|
const options: ComponentOptions[] = []
|
||||||
|
@ -46,13 +46,11 @@ const initSocial = async () => {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
console.info(socialUsers.value)
|
|
||||||
}
|
}
|
||||||
const bind = (row) => {
|
const bind = (row) => {
|
||||||
const redirectUri = location.origin + '/user/profile?type=' + row.type
|
const redirectUri = location.origin + '/user/profile?type=' + row.type
|
||||||
// 进行跳转
|
// 进行跳转
|
||||||
socialAuthRedirect(row.type, encodeURIComponent(redirectUri)).then((res) => {
|
socialAuthRedirect(row.type, encodeURIComponent(redirectUri)).then((res) => {
|
||||||
console.log(res.url)
|
|
||||||
window.location.href = res.data
|
window.location.href = res.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user