|
@@ -7,7 +7,7 @@
|
|
|
</v-tabs>
|
|
|
<v-window v-model="tab" class="mt-3">
|
|
|
<v-window-item :value="val.value" v-for="val in tabList" :key="val.value">
|
|
|
- <component :is="val.path"></component>
|
|
|
+ <component :is="val.path" ref="tabRef"></component>
|
|
|
</v-window-item>
|
|
|
</v-window>
|
|
|
</v-card>
|
|
@@ -33,6 +33,7 @@ const route = useRoute()
|
|
|
// const router = useRouter()
|
|
|
const { t } = useI18n()
|
|
|
// tab
|
|
|
+const tabRef = ref()
|
|
|
const tab = ref(1)
|
|
|
const tabList = [
|
|
|
{ label: t('enterprise.infoSetting.basicInfo'), value: 1, path: basicInfo },
|
|
@@ -46,6 +47,10 @@ const tabList = [
|
|
|
|
|
|
watch(() => route?.query?.tabKey, (newVal) => { if (newVal) tab.value = newVal - 0 })
|
|
|
const handleTabClick = () => {
|
|
|
+ // 基本信息-获取企业管理员实名认证信息
|
|
|
+ if (tab.value === 1) {
|
|
|
+ tabRef.value[0].getAuthInfo()
|
|
|
+ }
|
|
|
// router.push(`${route.path}?tabKey=${tab.value.toString()}`)
|
|
|
}
|
|
|
</script>
|