完善基础框架,对原有APILoader进行接口响应的错误处理
This commit is contained in:
9
src/config.ts
Normal file
9
src/config.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
const config = {
|
||||
cors: {
|
||||
origin: ['http://localhost:5173'],
|
||||
allowedHeaders: ['Content-Type'],
|
||||
methods: ['GET', 'POST']
|
||||
},
|
||||
API_Port: 8080
|
||||
};
|
||||
export default config;
|
||||
Reference in New Issue
Block a user