|
@@ -11,13 +11,14 @@ import OEmpty from '@/components/o-empty'
|
|
|
import OFullRefresh from '@/components/o-full-refresh'
|
|
|
import OrchestraDeeds from './orchestra-deeds'
|
|
|
import MyPhoto from './my-photo'
|
|
|
-import { useRouter } from 'vue-router'
|
|
|
+import { useRoute, useRouter } from 'vue-router'
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: 'my-orchestra',
|
|
|
setup(props, ctx) {
|
|
|
+ const route = useRoute()
|
|
|
const router = useRouter()
|
|
|
- const tabActive = ref('我的班级')
|
|
|
+ const tabActive = ref<'course' | 'photo' | 'deeds'>((route.query as any)?.tab || 'course')
|
|
|
const data = reactive({
|
|
|
orchestraList: [] as any[],
|
|
|
loading: true
|
|
@@ -137,7 +138,7 @@ export default defineComponent({
|
|
|
animated
|
|
|
swipeable
|
|
|
>
|
|
|
- <Tab name="我的班级" title="我的班级">
|
|
|
+ <Tab name="course" title="我的班级">
|
|
|
<div class={styles.content}>
|
|
|
<MyClass
|
|
|
list={modelData.orchestra?.classGroupIdList || []}
|
|
@@ -145,12 +146,12 @@ export default defineComponent({
|
|
|
/>
|
|
|
</div>
|
|
|
</Tab>
|
|
|
- <Tab name="乐团相册" title="乐团相册">
|
|
|
+ <Tab name="photo" title="乐团相册">
|
|
|
<div class={styles.content}>
|
|
|
<MyPhoto orchestraId={modelData.orchestra?.id || ''} />
|
|
|
</div>
|
|
|
</Tab>
|
|
|
- <Tab name="乐团事迹" title="乐团事迹">
|
|
|
+ <Tab name="deeds" title="乐团事迹">
|
|
|
<div class={styles.content}>
|
|
|
<OrchestraDeeds orchestraId={modelData.orchestra?.id || ''} />
|
|
|
</div>
|