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

feat(*): 恢复配置

parent 770bcd9f
...@@ -112,7 +112,7 @@ const routes = [ ...@@ -112,7 +112,7 @@ const routes = [
] ]
const router = createRouter({ const router = createRouter({
history: createWebHashHistory('/admin/dctom/'), history: createWebHashHistory(),
routes, routes,
}) })
......
...@@ -5,7 +5,6 @@ import path from "path" // 需安装此模块 ...@@ -5,7 +5,6 @@ import path from "path" // 需安装此模块
export default defineConfig(({mode}) => { export default defineConfig(({mode}) => {
const ENV = loadEnv(mode, process.cwd()) const ENV = loadEnv(mode, process.cwd())
return { return {
base: '/admin/dctom/', // 添加基础路径配置
plugins: [vue()], plugins: [vue()],
resolve: { resolve: {
alias: { alias: {
...@@ -18,11 +17,10 @@ export default defineConfig(({mode}) => { ...@@ -18,11 +17,10 @@ export default defineConfig(({mode}) => {
port: 3000, // 指定服务器端口 port: 3000, // 指定服务器端口
proxy: { proxy: {
[ENV.VITE_APP_BASE_API5]: { [ENV.VITE_APP_BASE_API5]: {
target: 'https://screen.bmetech.com', target: 'https://screen.bmetech.com', // 更新为完整的基础路径
// target: 'https://vis.bmetech.com',
changeOrigin: true, 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