尚硅谷--管理系统
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
314 B

2 weeks ago
//配置代理跨域等
2 weeks ago
// vite.config.ts
2 weeks ago
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
2 weeks ago
import path from 'path'
2 weeks ago
export default defineConfig({
plugins: [vue()],
2 weeks ago
resolve: {
alias: {
'@': path.resolve('./src'), // 相对路径别名配置,使用 @ 代替 src
},
},
2 weeks ago
})