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.
|
|
|
/**
|
|
|
|
* 业务配置
|
|
|
|
* */
|
|
|
|
|
|
|
|
const env = process.env.NODE_ENV;
|
|
|
|
|
|
|
|
const Setting = {
|
|
|
|
/**
|
|
|
|
* 基础配置
|
|
|
|
* */
|
|
|
|
// 网页标题的后缀
|
|
|
|
titleSuffix: '银行教学系统',
|
|
|
|
// 路由模式,可选值为 history 或 hash
|
|
|
|
routerMode: 'hash',
|
|
|
|
// 页面切换时,是否显示模拟的进度条
|
|
|
|
showProgressBar: true,
|
|
|
|
// 接口请求地址
|
|
|
|
// apiBaseURL: env === 'development' ? 'http://192.168.31.125:8888' : 'http://39.108.250.202:8000',
|
|
|
|
apiBaseURL: env === 'development' ? 'http://192.168.31.151:9000' : 'http://www.liuwanr.cn',
|
|
|
|
// 接口请求返回错误时,弹窗的持续时间,单位:秒
|
|
|
|
modalDuration: 3,
|
|
|
|
// 接口请求返回错误时,弹窗的类型,可选值为 Message 或 Notice
|
|
|
|
errorModalType: 'Message',
|
|
|
|
// Cookies 默认保存时间,单位:天
|
|
|
|
cookiesExpires: 1,
|
|
|
|
/**
|
|
|
|
* token的key
|
|
|
|
*/
|
|
|
|
tokenKey: 'bank_token',
|
|
|
|
/**
|
|
|
|
* sessionStorage里state的key
|
|
|
|
*/
|
|
|
|
storeKey: 'bank_store',
|
|
|
|
/**
|
|
|
|
* sessionStorage里username的key
|
|
|
|
*/
|
|
|
|
usernameKey: 'bank_username',
|
|
|
|
/**
|
|
|
|
* 系统id
|
|
|
|
*/
|
|
|
|
systemId: 12,
|
|
|
|
/**
|
|
|
|
* 默认密码
|
|
|
|
*/
|
|
|
|
initialPassword: '111aaa',
|
|
|
|
/**
|
|
|
|
* 多语言配置
|
|
|
|
* */
|
|
|
|
i18n: {
|
|
|
|
// 默认语言
|
|
|
|
default: 'zh',
|
|
|
|
// 是否根据用户电脑配置自动设置语言(仅第一次有效)
|
|
|
|
auto: false
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 布局配置
|
|
|
|
* */
|
|
|
|
layout: {
|
|
|
|
|
|
|
|
},
|
|
|
|
/**
|
|
|
|
* 功能配置
|
|
|
|
* */
|
|
|
|
// 相同路由,不同参数间进行切换,是否强力更新
|
|
|
|
sameRouteForceUpdate: false,
|
|
|
|
// 是否使用动态路由
|
|
|
|
dynamicRoute: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
export default Setting;
|