no message

This commit is contained in:
小陌 2023-08-15 17:48:34 +08:00
parent c3c6f85c5e
commit e48c47f3e9
3 changed files with 57 additions and 78 deletions

View File

@ -7,8 +7,10 @@ const APP_CONFIG = {
THEMESETTING: true,
// Cookie name
SESSIONNAME: 'miucms_session',
//TokenName
TOKEN_NAME: "authorization",
// 网站LOGO, 正式形
APP_LOGO: 'https://oss.gter.net/avatar/97KwEWEGZeIREizSqgKwXgxaF76Z01V_vGFhY2E~/small?random=1692091829',
APP_LOGO: '',
//接口地址
API_URL: 'https://app.gter.net/admin',
}

View File

@ -1,68 +1,47 @@
const DEFAULT_CONFIG = {
//标题
APP_NAME: process.env.VUE_APP_TITLE,
//首页地址
DASHBOARD_URL: '/dashboard',
//版本号
APP_VER: "1.6.9",
//内核版本号
CORE_VER: "1.6.9",
//接口地址
API_URL: '/admin',
//请求超时
TIMEOUT: 10000,
//主题设置
THEMESETTING: true,
// 主题页头
THEMEHEADER: false,
//TokenName
TOKEN_NAME: "authorization",
TOKEN_NAME: "token",
// Cookie Name
SESSIONNAME: "MIUCMSSESSION",
//Token前缀注意最后有个空格如不需要需设置空字符串
TOKEN_PREFIX: "",
//追加其他头
HEADERS: {},
//请求是否开启缓存
REQUEST_CACHE: false,
//布局 默认default | 通栏header | 经典menu | 功能坞dock
//dock将关闭标签和面包屑栏
LAYOUT: 'default',
//菜单是否折叠
MENU_IS_COLLAPSE: false,
//菜单是否启用手风琴效果
MENU_UNIQUE_OPENED: false,
//是否开启多标签
LAYOUT_TAGS: true,
//语言
LANG: 'zh-cn',
//主题颜色
COLOR: '',
//是否加密localStorage, 为空不加密可填写AES(模式ECB,移位Pkcs7)加密
LS_ENCRYPTION: '',
//localStorageAES加密秘钥位数建议填写8的倍数
LS_ENCRYPTION_key: '2XNN4K8LC0ELVWN4',
//控制台首页默认布局
DEFAULT_GRID: {
//默认分栏数量和宽度 例如 [24] [18,6] [8,8,8] [6,12,6]
@ -73,9 +52,7 @@ const DEFAULT_CONFIG = {
]
}
}
// 如果生产模式就合并动态的APP_CONFIG
// public/config.js
Object.assign(DEFAULT_CONFIG, APP_CONFIG)
export default DEFAULT_CONFIG

View File

@ -239,7 +239,7 @@
}
},
created() {
this.appLogo = this.$config.APP_LOGO || logo;
this.appLogo = this.$tool.data.get("appLogo") || (this.$config.APP_LOGO || logo);
this.onLayoutResize();
window.addEventListener('resize', this.onLayoutResize);
var menu = this.$router.sc_getMenu();