diff --git a/jsconfig.json b/jsconfig.json index a3bb48e..27db476 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -1,5 +1,8 @@ { - "include": [ - "./src/**/*" - ] + "compilerOptions": { + "baseUrl": ".", + "paths": { + "@/*":["src/*"] + } + } } diff --git a/src/components/NewChannelRedirect.vue b/src/components/NewChannelRedirect.vue index d2aa7c7..ccd5cbf 100644 --- a/src/components/NewChannelRedirect.vue +++ b/src/components/NewChannelRedirect.vue @@ -11,7 +11,7 @@ export default { this.$router.replace('/') return } - this.$router.replace('/c/@' + channelId) + this.$router.replace('/@/' + channelId) } } diff --git a/src/router/index.js b/src/router/index.js index 36ac85f..39d23f2 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -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') }, diff --git a/src/routes/Channel.vue b/src/routes/Channel.vue index b4db30b..253ba61 100644 --- a/src/routes/Channel.vue +++ b/src/routes/Channel.vue @@ -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 }