mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-05-11 18:10:49 +08:00
完善设定tab精确路由
This commit is contained in:
@@ -160,7 +160,7 @@ const superUser = store.state.auth.superUser
|
||||
:item="{
|
||||
title: '设定',
|
||||
icon: 'mdi-cog',
|
||||
to: '/setting',
|
||||
to: '/setting/account',
|
||||
}"
|
||||
/>
|
||||
</template>
|
||||
|
||||
@@ -73,7 +73,7 @@ const tabs = [
|
||||
<template>
|
||||
<div>
|
||||
<VTabs v-model="activeTab" show-arrows class="v-tabs-pill">
|
||||
<VTab v-for="item in tabs" :key="item.icon" :value="item.tab">
|
||||
<VTab v-for="item in tabs" :key="item.icon" :value="item.tab" :to="'/setting/' + item.tab">
|
||||
<VIcon size="20" start :icon="item.icon" />
|
||||
{{ item.title }}
|
||||
</VTab>
|
||||
|
||||
@@ -92,7 +92,7 @@ const router = createRouter({
|
||||
},
|
||||
},
|
||||
{
|
||||
path: 'setting',
|
||||
path: 'setting/:tab',
|
||||
component: () => import('../pages/setting.vue'),
|
||||
meta: {
|
||||
requiresAuth: true,
|
||||
|
||||
Reference in New Issue
Block a user