We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3562b0 commit 5a62656Copy full SHA for 5a62656
src/views/Threads.vue
@@ -353,8 +353,8 @@ export default {
353
if (slug === '') slug = Math.random().toString(36).substring(6)
354
thread.slug = slug
355
return threadsApi.create(thread)
356
- .then(getThreads)
357
- .then(data => v.threadData.data = data)
+ .then(t => $router.push({ name: 'Posts', params: { threadSlug: t.slug } }))
+ .catch(err => console.log(err))
358
}
359
/* Internal Data */
360
const $route = useRoute()
0 commit comments