Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 09d3d0cf
authored
Aug 19, 2023
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
el-button点击后自动失焦 去除焦点样式等
1 parent
e93ea32e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
vue3-lw-pc/public/static/css/common.css
vue3-lw-pc/src/config.js
vue3-lw-pc/src/views/index/index.vue
vue3-lw-pc/public/static/css/common.css
View file @
09d3d0c
...
...
@@ -100,6 +100,7 @@ li {
.gap10
{
display
:
flex
;
flex-wrap
:
wrap
;
align-content
:
baseline
;
gap
:
10px
;
}
.gap5
{
...
...
vue3-lw-pc/src/config.js
View file @
09d3d0c
...
...
@@ -40,16 +40,16 @@ const common = {
entry
:
env
.
DOMAIN
+
'/microStore/'
,
container
:
'#micro-app'
,
// 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
=
{
_version
:
'v5.x'
,
// 当前版本信息
_packDateTime
:
__PACK_DATETIME__
,
// 打包时间
_env
:
process
.
env
.
VUE_APP_ENV
// 前端系统环境模式
_env
:
process
.
env
.
VUE_APP_ENV
,
// 前端系统环境模式
}
let
config
=
{
...
...
@@ -68,12 +68,12 @@ let config = {
services
:
{
wecom
:
'/open'
,
// system: 'http://192.168.4.168:6180',
common
:
'/common'
common
:
'/common'
,
},
get
headers
()
{
return
{
Authorization
:
'Bearer '
+
getToken
()
}
}
}
,
}
const
lwConfig
=
window
.
lwConfig
||
{}
// 线上动态配置,用于覆盖系统默认常量的配置信息
...
...
@@ -99,6 +99,16 @@ if (h) {
// 灰色主题
// 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不是绝对地址的拼接接口地址
// document.addEventListener(
// 'error',
...
...
vue3-lw-pc/src/views/index/index.vue
View file @
09d3d0c
...
...
@@ -515,7 +515,7 @@ export default {
}
//
企业动态
.card-title
{
background
:
linear-gradient
(
270deg
,
#07c160
0%
,
#90de45
100%
);
background
:
linear-gradient
(
270deg
,
var
(
--color
)
0%
,
var
(
--color-sub
)
100%
);
padding-bottom
:
10px
;
}
.title-right-icon
{
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment