fix: route issues
This commit is contained in:
@@ -1 +1,2 @@
|
|||||||
**/node_modules
|
**/node_modules
|
||||||
|
exporter
|
||||||
|
|||||||
@@ -2,11 +2,14 @@ FROM docker.hub.ipao.vip/golang:1.22-alpine as builder
|
|||||||
|
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
RUN go env -w GOPROXY=https://go.hub.ipao.vip,direct && \
|
RUN go env -w GOPROXY=https://go.hub.ipao.vip,direct && \
|
||||||
go env -w GO111MODULE=on && \
|
go env -w GO111MODULE=on && \
|
||||||
cd /app && \
|
cd /app && \
|
||||||
go mod tidy && \
|
go mod tidy
|
||||||
go build -o /app/exporter .
|
|
||||||
|
RUN go build -o /app/exporter .
|
||||||
|
|
||||||
|
|
||||||
FROM docker.hub.ipao.vip/alpine:3.20
|
FROM docker.hub.ipao.vip/alpine:3.20
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import { createRouter, createWebHistory } from 'vue-router'
|
import { createRouter, createWebHistory } from 'vue-router'
|
||||||
|
|
||||||
|
import NotFound from '@/views/NotFound.vue'
|
||||||
|
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
history: createWebHistory(import.meta.env.BASE_URL),
|
history: createWebHistory(import.meta.env.BASE_URL),
|
||||||
@@ -10,21 +11,26 @@ const router = createRouter({
|
|||||||
component: () => import('@/views/Home.vue'),
|
component: () => import('@/views/Home.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/favorites/:offset(\d+)?',
|
path: '/favorites/:offset?',
|
||||||
name: 'favorite-messages',
|
name: 'favorite-messages',
|
||||||
component: () => import('@/views/FavoriteMessages.vue'),
|
component: () => import('@/views/FavoriteMessages.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/channels/:channel/messages/:offset(\d+)?',
|
path: '/channels/:channel/messages/:offset?',
|
||||||
name: 'channel-messages',
|
name: 'channel-messages',
|
||||||
component: () => import('@/views/ChannelMessages.vue'),
|
component: () => import('@/views/ChannelMessages.vue'),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: '/:pathMatch(.*)*',
|
path: '/:pathMatch(.*)*',
|
||||||
name: 'NotFound',
|
name: 'NotFound',
|
||||||
component: import('@/views/NotFound.vue'),
|
component: NotFound,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// router.beforeEach((to, from, next) => {
|
||||||
|
// console.log(to)
|
||||||
|
// next()
|
||||||
|
// })
|
||||||
|
|
||||||
export default router
|
export default router
|
||||||
|
|||||||
Reference in New Issue
Block a user