代码拉取完成,页面将自动刷新
// vite.config.js
import { defineConfig } from "file:///C:/Users/12443/Desktop/%E6%B5%8B%E8%AF%95%E4%BB%A3%E7%A0%81/vue3-template/node_modules/vite/dist/node/index.js";
import vue from "file:///C:/Users/12443/Desktop/%E6%B5%8B%E8%AF%95%E4%BB%A3%E7%A0%81/vue3-template/node_modules/@vitejs/plugin-vue/dist/index.mjs";
import { resolve } from "path";
var __vite_injected_original_dirname = "C:\\Users\\12443\\Desktop\\\u6D4B\u8BD5\u4EE3\u7801\\vue3-template";
var vite_config_default = defineConfig({
plugins: [vue()],
server: {
host: "0.0.0.0",
open: false,
port: 5174,
proxy: {
"/api1": {
target: "https://bang.360.cn",
// 热门城市的API
changeOrigin: true,
//支持跨域
// ws: true,
rewrite: (path) => path.replace(/^\/api1/, "")
//重写路径,替换/api
},
"/api2": {
target: "https://restapi.amap.com",
// 输入城市获取地址的API
changeOrigin: true,
//支持跨域
// ws: true,
rewrite: (path) => path.replace(/^\/api2/, "")
//重写路径,替换/api
}
}
},
// ...其他配置项
optimizeDeps: {
include: ["jquery"]
},
resolve: {
alias: {
"@": resolve(__vite_injected_original_dirname, "src"),
"/images": "src/assets/images/"
}
}
});
export {
vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiXSwKICAic291cmNlc0NvbnRlbnQiOiBbImNvbnN0IF9fdml0ZV9pbmplY3RlZF9vcmlnaW5hbF9kaXJuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFwxMjQ0M1xcXFxEZXNrdG9wXFxcXFx1NkQ0Qlx1OEJENVx1NEVFM1x1NzgwMVxcXFx2dWUzLXRlbXBsYXRlXCI7Y29uc3QgX192aXRlX2luamVjdGVkX29yaWdpbmFsX2ZpbGVuYW1lID0gXCJDOlxcXFxVc2Vyc1xcXFwxMjQ0M1xcXFxEZXNrdG9wXFxcXFx1NkQ0Qlx1OEJENVx1NEVFM1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0FBUztBQUFBLFFBQ1AsUUFBUTtBQUFBO0FBQUEsUUFDUixjQUFjO0FBQUE7QUFBQTtBQUFBLFFBRWQsU0FBUyxDQUFDLFNBQVMsS0FBSyxRQUFRLFdBQVcsRUFBRTtBQUFBO0FBQUEsTUFFL0M7QUFBQSxNQUNBLFNBQVM7QUFBQSxRQUNQLFFBQVE7QUFBQTtBQUFBLFFBQ1IsY0FBYztBQUFBO0FBQUE7QUFBQSxRQUVkLFNBQVMsQ0FBQyxTQUFTLEtBQUssUUFBUSxXQUFXLEVBQUU7QUFBQTtBQUFBLE1BRS9DO0FBQUEsSUFDRjtBQUFBLEVBQ0Y7QUFBQTtBQUFBLEVBRUEsY0FBYztBQUFBLElBQ1osU0FBUyxDQUFDLFFBQVE7QUFBQSxFQUNwQjtBQUFBLEVBQ0EsU0FBUztBQUFBLElBQ1AsT0FBTztBQUFBLE1BQ0wsS0FBSyxRQUFRLGtDQUFXLEtBQUs7QUFBQSxNQUM3QixXQUFXO0FBQUEsSUFDYjtBQUFBLEVBQ0Y7QUFDRixDQUFDOyIsCiAgIm5hbWVzIjogW10KfQo=
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。