refactor(GOV-010): 统一封装前端 Axios 请求
This commit is contained in:
@@ -27,6 +27,11 @@ const publicEnv = readDevelopmentPublicEnv();
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [vue()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(webDirectory, 'src'),
|
||||
},
|
||||
},
|
||||
define: Object.fromEntries(
|
||||
Object.entries(publicEnv).map(([key, value]) => [
|
||||
`import.meta.env.${key}`,
|
||||
|
||||
Reference in New Issue
Block a user