feat(custom): 订单列表改版

This commit is contained in:
2023-11-14 20:43:38 +08:00
parent 4babc88fcd
commit 6ce72fdfd6
24 changed files with 5221 additions and 11119 deletions

View File

@@ -3,6 +3,7 @@ import { setupRouterGuard } from './guard'
import { basicRoutes, EMPTY_ROUTE, NOT_FOUND_ROUTE } from './routes'
import { getToken, isNullOrWhitespace } from '@/utils'
import { usePermissionStore } from '@/store'
import * as Sentry from '@sentry/vue'
const isHash = true
export const router = createRouter({
@@ -14,6 +15,23 @@ export const router = createRouter({
export async function setupRouter(app) {
await addDynamicRoutes()
setupRouterGuard(router)
Sentry.init({
app,
dsn: 'https://589c2c58683b4e8fa87a87609fd95e3b@w.huakk.top/2',
integrations: [
new Sentry.BrowserTracing({
// Set 'tracePropagationTargets' to control for which URLs distributed tracing should be enabled
tracePropagationTargets: ['localhost', /^https:\/\/yourserver\.io\/api/],
routingInstrumentation: Sentry.vueRouterInstrumentation(router),
}),
new Sentry.Replay(),
],
// Performance Monitoring
tracesSampleRate: 1.0, // Capture 100% of the transactions
// Session Replay
replaysSessionSampleRate: 0.1, // This sets the sample rate at 10%. You may want to change it to 100% while in development and then sample at a lower rate in production.
replaysOnErrorSampleRate: 1.0, // If you're not already sampling the entire session, change the sample rate to 100% when sampling sessions where errors occur.
})
app.use(router)
}