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
36337e19
Commit
36337e19
authored
Nov 08, 2024
by
nick zheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: 更换page-logo
parent
bcebac61
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
5 deletions
+111
-5
page-logo.svg
src/assets/svgs/page-logo.svg
+106
-0
sidebar.vue
src/layout/components/sidebar/sidebar.vue
+1
-1
uno.config.ts
uno.config.ts
+4
-4
No files found.
src/assets/svgs/page-logo.svg
0 → 100644
View file @
36337e19
This diff is collapsed.
Click to expand it.
src/layout/components/sidebar/sidebar.vue
View file @
36337e19
...
...
@@ -90,7 +90,7 @@ function handleMenuValueChange(key: string) {
<
template
>
<div
class=
"flex h-full flex-col justify-between overflow-hidden"
>
<div
class=
"flex flex-1 flex-col overflow-hidden"
>
<div
class=
"bg-
px-page_logo-png
mx-auto flex h-[50px] w-full shrink-0 bg-contain bg-center bg-no-repeat"
/>
<div
class=
"bg-
svg-page_logo
mx-auto flex h-[50px] w-full shrink-0 bg-contain bg-center bg-no-repeat"
/>
<div
class=
"px-3 py-5"
>
<n-button
...
...
uno.config.ts
View file @
36337e19
...
...
@@ -5,7 +5,7 @@ export default defineConfig({
[
/^bg-svg-
([\w
-
]
+
)
$/
,
([,
dirFname
])
=>
{
let
url
=
'@/assets/
image
s/'
let
url
=
'@/assets/
svg
s/'
const
dirFnameArr
=
dirFname
.
split
(
'-'
)
...
...
@@ -13,12 +13,12 @@ export default defineConfig({
const
[
dirStr
,
fname
]
=
dirFnameArr
const
dirPath
=
dirStr
.
split
(
'_'
).
join
(
'/'
)
url
+=
`
${
dirPath
}
/
${
fname
.
replace
(
/_/g
,
'-'
)}
`
url
+=
`
${
dirPath
}
/
${
fname
.
replace
(
/_/g
,
'-'
)}
.svg
`
}
else
{
url
+=
`
${
dirFname
.
replace
(
/_/g
,
'-'
)}
`
url
+=
`
${
dirFname
.
replace
(
/_/g
,
'-'
)}
.svg
`
}
return
{
'background-image'
:
`url(
@/assets/svgs/
${
url
}
.svg
)`
,
'background-size'
:
'cover'
}
return
{
'background-image'
:
`url(
${
url
}
)`
,
'background-size'
:
'cover'
}
},
],
[
...
...
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