初始化提交
This commit is contained in:
13
src/config/index.ts
Normal file
13
src/config/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
const config = {
|
||||
terminal: 1, //终端
|
||||
title: '后台管理系统', //网站默认标题
|
||||
version: '1.9.4', //版本号
|
||||
// 开发环境使用相对路径(通过代理),生产环境使用完整URL
|
||||
baseUrl: import.meta.env.DEV
|
||||
? '/'
|
||||
: `${import.meta.env.VITE_APP_BASE_URL || 'https://76458.com'}/`, //请求接口域名
|
||||
urlPrefix: 'adminapi', //请求默认前缀
|
||||
timeout: 10 * 1000 //请求超时时长
|
||||
}
|
||||
|
||||
export default config
|
||||
Reference in New Issue
Block a user