mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2026-02-14 05:34:26 +08:00
v1.0.4
This commit is contained in:
38
smart-admin-web/src/config/index.js
Normal file
38
smart-admin-web/src/config/index.js
Normal file
@@ -0,0 +1,38 @@
|
||||
console.log('api url : ', process.env.VUE_APP_URL);
|
||||
console.log('websocket url : ', process.env.VUE_APP_SOCKET_URL);
|
||||
export default {
|
||||
/**
|
||||
* @description 配置显示在浏览器标签的title
|
||||
*/
|
||||
title: 'Smart-Admin',
|
||||
/**
|
||||
* @description token在Cookie中存储的天数,默认1天
|
||||
*/
|
||||
cookieExpires: 3,
|
||||
/**
|
||||
* @description 是否使用国际化,默认为false
|
||||
* 如果不使用,则需要在路由中给需要在菜单中展示的路由设置meta: {title: 'xxx'}
|
||||
* 用来在菜单中显示文字
|
||||
*/
|
||||
useI18n: false,
|
||||
/**
|
||||
* @description api请求基础路径
|
||||
*/
|
||||
baseUrl: {
|
||||
apiUrl: process.env.VUE_APP_URL,
|
||||
webSocketUrl: process.env.VUE_APP_SOCKET_URL
|
||||
},
|
||||
/**
|
||||
* @description 默认打开的首页的路由name值,默认为home
|
||||
*/
|
||||
homeName: 'Home',
|
||||
/**
|
||||
* @description 需要加载的插件
|
||||
*/
|
||||
plugin: {
|
||||
'error-store': {
|
||||
showInHeader: true, // 设为false后不会在顶部显示错误日志徽标
|
||||
developmentOff: true // 设为true后在开发环境不会收集错误信息,方便开发中排查错误
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user