路由配置

master
lzq 2025-08-30 15:20:39 +08:00
parent 120818ce4b
commit b8db7db6f2
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,8 @@
# 日志级别 TRACE < DEBUG < INFO < WARN < ERROR
VITE_LOG_LEVEL=DEBUG
VITE_OSS_UPLOAD_BASE_URL=https://cdn-zsy.oss-cn-shanghai.aliyuncs.com
VITE_OSS_UPLOAD_BASE_URL=https://tq-cdn.oss-cn-shanghai.aliyuncs.com
VITE_HTTP_SERVER_BASE_URL=/supervision/api
VITE_APP_BASE_URL=/supervision

View File

@ -12,6 +12,7 @@ import {
MenuCategory
} from '@/common/app/contants.ts'
import { reloadUserInfo } from '@/common/app'
import { appBaseUrl } from '@/common'
/**
*
@ -120,7 +121,7 @@ function buildDefaultRoutes() {
// 创建路由实例
const router = createRouter({
history: createWebHistory(),
history: createWebHistory(appBaseUrl),
routes: buildDefaultRoutes(),
})