mirror of
https://github.com/mmjee/Piped-Material.git
synced 2024-12-06 19:26:36 +01:00
Handle @ in channels the correct way
This commit is contained in:
+6
-3
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"include": [
|
||||
"./src/**/*"
|
||||
]
|
||||
"compilerOptions": {
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*":["src/*"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ export default {
|
||||
this.$router.replace('/')
|
||||
return
|
||||
}
|
||||
this.$router.replace('/c/@' + channelId)
|
||||
this.$router.replace('/@/' + channelId)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
+1
-1
@@ -54,7 +54,7 @@ const routes = [
|
||||
component: ClipRedir
|
||||
},
|
||||
{
|
||||
path: '/:path(channel|user|c)/:channelId/:videos?',
|
||||
path: '/:path(channel|user|c|@)/:channelId/:videos?',
|
||||
name: 'Channel',
|
||||
component: () => import('@/routes/Channel')
|
||||
},
|
||||
|
||||
@@ -155,7 +155,7 @@ export default {
|
||||
this.error = null
|
||||
} catch (e) {
|
||||
if (e.isAxiosError) {
|
||||
this.error = e.response.data
|
||||
this.error = e.response.data != null ? e.response.data : e.toString()
|
||||
} else {
|
||||
throw e
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user