Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
admin
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0704672a
authored
Jul 21, 2024
by
YunaiV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【功能优化】全局:DictTag 的 `default` 情况下,使用 `info` 替代,避免浏览器 warning 警告
parent
8ed2afb7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/components/DictTag/src/DictTag.vue
+2
-2
No files found.
src/components/DictTag/src/DictTag.vue
View file @
0704672a
...
...
@@ -22,8 +22,8 @@ export default defineComponent({
const
dictOptions
=
getDictOptions
(
dictType
)
dictOptions
.
forEach
((
dict
:
DictDataType
)
=>
{
if
(
dict
.
value
===
value
)
{
if
(
dict
.
colorType
+
''
===
'
primary'
||
dict
.
colorType
+
''
===
'
default'
)
{
dict
.
colorType
=
''
if
(
dict
.
colorType
+
''
===
'default'
)
{
dict
.
colorType
=
'
info
'
}
dictData
.
value
=
dict
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment