mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 06:36:00 +00:00
electron build
This commit is contained in:
@@ -5,7 +5,8 @@ export function getIconImage(src, props) {
|
||||
const { size = 16, style = {}, className, title } = props || {};
|
||||
if (!src) return null;
|
||||
if (src.endsWith('.svg')) {
|
||||
src = '/icons/' + src;
|
||||
// eslint-disable-next-line
|
||||
src = `${process.env.PUBLIC_URL}/icons/${src}`;
|
||||
}
|
||||
// if (props.alignToLine) {
|
||||
// style["position"] = "relative";
|
||||
|
||||
Reference in New Issue
Block a user