Handle @ in channels the correct way

This commit is contained in:
root
2023-04-28 05:13:32 +05:30
parent 1f49bf78ec
commit 326e7bd5fe
4 changed files with 9 additions and 6 deletions
+6 -3
View File
@@ -1,5 +1,8 @@
{
"include": [
"./src/**/*"
]
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*":["src/*"]
}
}
}
+1 -1
View File
@@ -11,7 +11,7 @@ export default {
this.$router.replace('/')
return
}
this.$router.replace('/c/@' + channelId)
this.$router.replace('/@/' + channelId)
}
}
</script>
+1 -1
View File
@@ -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')
},
+1 -1
View File
@@ -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
}