Ai
1 Star 1 Fork 0

默默/vue3-dynamic-routing

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vite.config.ts 520 Bytes
一键复制 编辑 原始数据 按行查看 历史
默默 提交于 2023-06-23 22:14 +08:00 . feat: 完成动态路由
import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
vue(),
],
server: {
proxy: {
"/mock": {
target: "http://127.0.0.1:4523/m1/2916498-0-default",
changeOrigin: true,
pathRewrite: {
"^/mock": ""
}
},
},
},
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url))
}
}
})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
TypeScript
1
https://gitee.com/wangzhaoyv/vue3-dynamic-routing.git
git@gitee.com:wangzhaoyv/vue3-dynamic-routing.git
wangzhaoyv
vue3-dynamic-routing
vue3-dynamic-routing
master

搜索帮助