Commit 1b4bb9bc authored by Cai Wei's avatar Cai Wei

feat(*): 恢复配置

parent 770bcd9f
......@@ -112,7 +112,7 @@ const routes = [
]
const router = createRouter({
history: createWebHashHistory('/admin/dctom/'),
history: createWebHashHistory(),
routes,
})
......
......@@ -5,7 +5,6 @@ import path from "path" // 需安装此模块
export default defineConfig(({mode}) => {
const ENV = loadEnv(mode, process.cwd())
return {
base: '/admin/dctom/', // 添加基础路径配置
plugins: [vue()],
resolve: {
alias: {
......@@ -18,11 +17,10 @@ export default defineConfig(({mode}) => {
port: 3000, // 指定服务器端口
proxy: {
[ENV.VITE_APP_BASE_API5]: {
target: 'https://screen.bmetech.com',
// target: 'https://vis.bmetech.com',
target: 'https://screen.bmetech.com', // 更新为完整的基础路径
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '') // 添加路径重写规则
},
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment