fix:最新
This commit is contained in:
@@ -5,7 +5,7 @@ import uni from "@dcloudio/vite-plugin-uni";
|
||||
export default defineConfig(({ mode }) => {
|
||||
const env = loadEnv(mode, process.cwd(), "");
|
||||
const proxyTarget =
|
||||
env.VITE_API_PROXY_TARGET || "http://192.168.0.222:8082";
|
||||
env.VITE_API_PROXY_TARGET || "https://smart.bugtc.com";
|
||||
const csProxyTarget =
|
||||
env.VITE_CS_API_BASE_URL || proxyTarget;
|
||||
|
||||
@@ -37,12 +37,18 @@ export default defineConfig(({ mode }) => {
|
||||
changeOrigin: true,
|
||||
ws: true,
|
||||
},
|
||||
"/amap-api": {
|
||||
target: "https://restapi.amap.com",
|
||||
changeOrigin: true,
|
||||
rewrite: (path) => path.replace(/^\/amap-api/, ""),
|
||||
},
|
||||
},
|
||||
},
|
||||
css: {
|
||||
preprocessorOptions: {
|
||||
scss: {
|
||||
additionalData: `@use "@/styles/variables.scss" as *;`,
|
||||
additionalData: `@use "@/styles/variables.scss" as *;\n`,
|
||||
silenceDeprecations: ["import", "legacy-js-api"],
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user