xiao_002
This commit is contained in:
@@ -18,6 +18,7 @@ export default defineConfig({
|
||||
vue(),
|
||||
AutoImport({
|
||||
resolvers: [ElementPlusResolver()]
|
||||
|
||||
}),
|
||||
Components({
|
||||
resolvers: [ElementPlusResolver()]
|
||||
@@ -27,7 +28,7 @@ export default defineConfig({
|
||||
proxy: {
|
||||
"/api": {
|
||||
// target: "http://127.0.0.1:8000/", // 目标服务器地址
|
||||
target: "https://six.sixgou.com/", // 目标服务器地址
|
||||
target: "https://xiao.sixgou.com/", // 目标服务器地址
|
||||
changeOrigin: true, // 开启跨域
|
||||
// 重写路径,将 /api/six_demo/demo 重写为 /six_demo/demo
|
||||
rewrite: (path) => path.replace(/^\/api/, "")
|
||||
|
||||
Reference in New Issue
Block a user