Commit 36337e19 authored by nick zheng's avatar nick zheng

chore: 更换page-logo

parent bcebac61
This diff is collapsed.
......@@ -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
......
......@@ -5,7 +5,7 @@ export default defineConfig({
[
/^bg-svg-([\w-]+)$/,
([, dirFname]) => {
let url = '@/assets/images/'
let url = '@/assets/svgs/'
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' }
},
],
[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment