mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
refactor(projects): perf code
This commit is contained in:
10
src/hooks/common/icon.ts
Normal file
10
src/hooks/common/icon.ts
Normal file
@ -0,0 +1,10 @@
|
||||
import { useSvgIconRender } from '@sa/hooks';
|
||||
import SvgIcon from '@/components/custom/svg-icon.vue';
|
||||
|
||||
export function useSvgIcon() {
|
||||
const { SvgIconVNode } = useSvgIconRender(SvgIcon);
|
||||
|
||||
return {
|
||||
SvgIconVNode
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user