|
@@ -130,7 +130,9 @@ export default defineComponent({
|
|
|
if (toolSubject?.tenantGroupAlbumId || state.albumId) {
|
|
|
index = state.albumList.findIndex(item => {
|
|
|
return toolSubject?.tenantGroupAlbumId
|
|
|
- ? item.tenantGroupAlbumId === toolSubject?.tenantGroupAlbumId
|
|
|
+ ? (baseState.platformType === 'STUDENT'
|
|
|
+ ? item.tenantGroupAlbumId
|
|
|
+ : item.id) === toolSubject?.tenantGroupAlbumId
|
|
|
: item.id == state.albumId // 这里不全等 因为state.albumId为字符串 id为number
|
|
|
})
|
|
|
index < 0 && (index = 0)
|
|
@@ -565,7 +567,9 @@ export default defineComponent({
|
|
|
JSON.stringify({
|
|
|
activeTab: state.activeTab,
|
|
|
tenantGroupAlbumId:
|
|
|
- state.details.tenantGroupAlbumId
|
|
|
+ baseState.platformType === 'STUDENT'
|
|
|
+ ? state.details.tenantGroupAlbumId
|
|
|
+ : state.details.id // 老师用专辑id当唯一值
|
|
|
})
|
|
|
)
|
|
|
router.push({
|
|
@@ -588,7 +592,9 @@ export default defineComponent({
|
|
|
JSON.stringify({
|
|
|
activeTab: state.activeTab,
|
|
|
tenantGroupAlbumId:
|
|
|
- state.details.tenantGroupAlbumId
|
|
|
+ baseState.platformType === 'STUDENT'
|
|
|
+ ? state.details.tenantGroupAlbumId
|
|
|
+ : state.details.id // 老师用专辑id当唯一值
|
|
|
})
|
|
|
)
|
|
|
router.push({
|