fix route tab select

This commit is contained in:
2024-11-21 08:54:21 +08:00
parent a59a6f54e5
commit 14267bab3a
5 changed files with 12 additions and 13 deletions

View File

@@ -287,7 +287,7 @@ onUnmounted(() => {
<template>
<NFlex justify="center" align="center" vertical>
<NTabs type="segment" animated v-if="accountInfo" style="width: 100%;">
<NTabs type="segment" animated v-if="accountInfo" style="width: 100%;" :default-value="$route.query.tab?.toString() ?? 'info'">
<NTabPane name="info" tab="个人信息" style="width: 100%;" display-directive="show:lazy">
<NFlex justify="center" align="center">
<NCard embedded style="width: 100%;max-width: 800px;">