Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
fe8f9b36
Commit
fe8f9b36
authored
Oct 24, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: unocss配置修改
parent
4c567409
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
uno.config.ts
uno.config.ts
+4
-4
No files found.
uno.config.ts
View file @
fe8f9b36
...
@@ -13,9 +13,9 @@ export default defineConfig({
...
@@ -13,9 +13,9 @@ export default defineConfig({
const
[
dirStr
,
fname
]
=
dirFnameArr
const
[
dirStr
,
fname
]
=
dirFnameArr
const
dirPath
=
dirStr
.
split
(
'_'
).
join
(
'/'
)
const
dirPath
=
dirStr
.
split
(
'_'
).
join
(
'/'
)
url
+=
`
${
dirPath
}
/
${
fname
.
replace
(
'_'
,
'-'
)}
`
url
+=
`
${
dirPath
}
/
${
fname
.
replace
(
/_/g
,
'-'
)}
`
}
else
{
}
else
{
url
+=
`
${
dirFname
.
replace
(
'_'
,
'-'
)}
`
url
+=
`
${
dirFname
.
replace
(
/_/g
,
'-'
)}
`
}
}
return
{
'background-image'
:
`url(@/assets/svgs/
${
url
}
.svg)`
,
'background-size'
:
'cover'
}
return
{
'background-image'
:
`url(@/assets/svgs/
${
url
}
.svg)`
,
'background-size'
:
'cover'
}
...
@@ -32,9 +32,9 @@ export default defineConfig({
...
@@ -32,9 +32,9 @@ export default defineConfig({
const
[
dirStr
,
fname
]
=
dirFnameArr
const
[
dirStr
,
fname
]
=
dirFnameArr
const
dirPath
=
dirStr
.
split
(
'_'
).
join
(
'/'
)
const
dirPath
=
dirStr
.
split
(
'_'
).
join
(
'/'
)
url
+=
`
${
dirPath
}
/
${
fname
.
replace
(
'_'
,
'-'
)}
.
${
suffix
}
`
url
+=
`
${
dirPath
}
/
${
fname
.
replace
(
/_/g
,
'-'
)}
.
${
suffix
}
`
}
else
{
}
else
{
url
+=
`
${
dirFname
.
replace
(
'_'
,
'-'
)}
.
${
suffix
}
`
url
+=
`
${
dirFname
.
replace
(
/_/g
,
'-'
)}
.
${
suffix
}
`
}
}
return
{
return
{
...
...
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