mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-06-21 23:53:57 +08:00
- 新增路由 plugin-app 与壳页,按 nav_key 尝试 AppPage{Pascal}/AppPage/Page
- DefaultLayout 与 appcenter 合并插件侧栏项;plugin/sidebar_nav 经 Pinia 去重缓存
- 工具 pluginSidebarNav、联邦 loader 与文档/示例更新;登出时清空侧栏缓存
Made-with: Cursor
18 lines
545 B
Vue
18 lines
545 B
Vue
<script setup lang="ts">
|
||
/**
|
||
* 示例:nav_key=settings 时主应用会优先加载 AppPageSettings,再回退 AppPage。
|
||
*/
|
||
const props = defineProps({
|
||
api: { type: Object, default: () => ({}) },
|
||
navKey: { type: String, default: 'settings' },
|
||
pluginId: { type: String, default: '' },
|
||
})
|
||
</script>
|
||
|
||
<template>
|
||
<div class="pa-4">
|
||
<div class="text-subtitle-1">Settings 子界面(AppPageSettings)</div>
|
||
<div class="text-caption text-medium-emphasis">navKey={{ navKey }} · pluginId={{ pluginId }}</div>
|
||
</div>
|
||
</template>
|