Commit 61b9f698 authored by lihaihan's avatar lihaihan

修改base指向

parent 92a84408
...@@ -5,7 +5,6 @@ import { resolve } from 'path' ...@@ -5,7 +5,6 @@ import { resolve } from 'path'
import svgicon from 'vite-plugin-svgicon' import svgicon from 'vite-plugin-svgicon'
export default defineConfig({ export default defineConfig({
plugins: [ plugins: [
vue(), vue(),
vueJsx(), vueJsx(),
...@@ -26,7 +25,17 @@ export default defineConfig({ ...@@ -26,7 +25,17 @@ export default defineConfig({
changeOrigin: true, changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ''), rewrite: (path) => path.replace(/^\/api/, ''),
}, },
'/ali': {
target: 'http://mdt-open-public.cn-hangzhou.aliyuncs.com/',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/ali/, ''),
},
'.ali': {
target: 'http://mdt-open-public.cn-hangzhou.aliyuncs.com',
changeOrigin: true,
rewrite: (path) => path.replace(/^\.ali/, ''),
},
}, },
}, },
base: '/statics/huamu_party_building_3d', base: '/statics/huamu_party_building_3d/',
}) })
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