Commit 09d3d0cf by xinla

el-button点击后自动失焦 去除焦点样式等

1 parent e93ea32e
...@@ -100,6 +100,7 @@ li { ...@@ -100,6 +100,7 @@ li {
.gap10 { .gap10 {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
align-content: baseline;
gap: 10px; gap: 10px;
} }
.gap5 { .gap5 {
......
...@@ -40,16 +40,16 @@ const common = { ...@@ -40,16 +40,16 @@ const common = {
entry: env.DOMAIN + '/microStore/', entry: env.DOMAIN + '/microStore/',
container: '#micro-app', container: '#micro-app',
// activeRule: (location) => location.hash.startsWith('#/microStore'), // activeRule: (location) => location.hash.startsWith('#/microStore'),
activeRule: env.BASE_URL.slice(env.BASE_URL.indexOf('/')) + 'microStore' // eg:/vue/microStore activeRule: env.BASE_URL.slice(env.BASE_URL.indexOf('/')) + 'microStore', // eg:/vue/microStore
} },
} },
} }
// 以下仅用于系统信息展示,不作为项目变量使用,请勿在代码中使用 // 以下仅用于系统信息展示,不作为项目变量使用,请勿在代码中使用
const project = { const project = {
_version: 'v5.x', // 当前版本信息 _version: 'v5.x', // 当前版本信息
_packDateTime: __PACK_DATETIME__, // 打包时间 _packDateTime: __PACK_DATETIME__, // 打包时间
_env: process.env.VUE_APP_ENV // 前端系统环境模式 _env: process.env.VUE_APP_ENV, // 前端系统环境模式
} }
let config = { let config = {
...@@ -68,12 +68,12 @@ let config = { ...@@ -68,12 +68,12 @@ let config = {
services: { services: {
wecom: '/open', wecom: '/open',
// system: 'http://192.168.4.168:6180', // system: 'http://192.168.4.168:6180',
common: '/common' common: '/common',
}, },
get headers() { get headers() {
return { Authorization: 'Bearer ' + getToken() } return { Authorization: 'Bearer ' + getToken() }
} },
} }
const lwConfig = window.lwConfig || {} // 线上动态配置,用于覆盖系统默认常量的配置信息 const lwConfig = window.lwConfig || {} // 线上动态配置,用于覆盖系统默认常量的配置信息
...@@ -99,6 +99,16 @@ if (h) { ...@@ -99,6 +99,16 @@ if (h) {
// 灰色主题 // 灰色主题
// if (process.env.VUE_APP_ENV === 'production') document.documentElement.style.filter = 'grayscale(100%)' // if (process.env.VUE_APP_ENV === 'production') document.documentElement.style.filter = 'grayscale(100%)'
// el-button点击后自动失焦 去除焦点样式
document.addEventListener('click', (target) => {
target = target.target
if (target.className.includes('el-button')) {
target.blur()
} else if (target.parentNode.className.includes('el-button')) {
target.parentNode.blur()
}
})
// 统一为img的src不是绝对地址的拼接接口地址 // 统一为img的src不是绝对地址的拼接接口地址
// document.addEventListener( // document.addEventListener(
// 'error', // 'error',
......
...@@ -515,7 +515,7 @@ export default { ...@@ -515,7 +515,7 @@ export default {
} }
// 企业动态 // 企业动态
.card-title { .card-title {
background: linear-gradient(270deg, #07c160 0%, #90de45 100%); background: linear-gradient(270deg, var(--color) 0%, var(--color-sub) 100%);
padding-bottom: 10px; padding-bottom: 10px;
} }
.title-right-icon { .title-right-icon {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!