summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/pages/my-groups/group.vue11
-rw-r--r--src/client/router.ts2
2 files changed, 10 insertions, 3 deletions
diff --git a/src/client/pages/my-groups/group.vue b/src/client/pages/my-groups/group.vue
index d0d83c9c0e..ab6dc85399 100644
--- a/src/client/pages/my-groups/group.vue
+++ b/src/client/pages/my-groups/group.vue
@@ -45,6 +45,13 @@ export default defineComponent({
MkButton
},
+ props: {
+ groupId: {
+ type: String,
+ required: true,
+ },
+ },
+
data() {
return {
INFO: computed(() => this.group ? {
@@ -58,7 +65,7 @@ export default defineComponent({
},
watch: {
- $route: 'fetch'
+ groupId: 'fetch',
},
created() {
@@ -69,7 +76,7 @@ export default defineComponent({
fetch() {
Progress.start();
os.api('users/groups/show', {
- groupId: this.$route.params.group
+ groupId: this.groupId
}).then(group => {
this.group = group;
os.api('users/show', {
diff --git a/src/client/router.ts b/src/client/router.ts
index 6f79426b23..5f2a657459 100644
--- a/src/client/router.ts
+++ b/src/client/router.ts
@@ -55,7 +55,7 @@ export const router = createRouter({
{ path: '/my/lists', component: page('my-lists/index') },
{ path: '/my/lists/:list', component: page('my-lists/list') },
{ path: '/my/groups', component: page('my-groups/index') },
- { path: '/my/groups/:group', component: page('my-groups/group') },
+ { path: '/my/groups/:group', component: page('my-groups/group'), props: route => ({ groupId: route.params.group }) },
{ path: '/my/antennas', component: page('my-antennas/index') },
{ path: '/my/clips', component: page('my-clips/index') },
{ path: '/scratchpad', component: page('scratchpad') },