|
@@ -8,7 +8,7 @@ import { resolve } from 'path'
|
|
|
|
|
|
const proxy = {
|
|
|
'/api': {
|
|
|
- target: 'http://test.4dkankan.com/',
|
|
|
+ target: 'http://v4-test.4dkankan.com/',
|
|
|
changeOrigin: true,
|
|
|
rewrite: path => path.replace(/^\/api/, '')
|
|
|
}
|
|
@@ -16,6 +16,7 @@ const proxy = {
|
|
|
|
|
|
// https://vitejs.dev/config/
|
|
|
export default defineConfig({
|
|
|
+ base: './',
|
|
|
plugins: [
|
|
|
vue(),
|
|
|
DefineOptions(),
|