diff --git a/src/components/SiderMenu/BaseMenu.js b/src/components/SiderMenu/BaseMenu.js
index 8cf125ec3f4e69aecf70ce7097e3ca1341b54c80..88ca04226123672f71069e8b08d637eccd808c7d 100644
--- a/src/components/SiderMenu/BaseMenu.js
+++ b/src/components/SiderMenu/BaseMenu.js
@@ -5,6 +5,7 @@ import isEqual from 'lodash/isEqual';
import memoizeOne from 'memoize-one';
import { urlToList } from '../_utils/pathTools';
import { getMenuMatches } from './SiderMenuUtils';
+import { isUrl } from '@/utils/utils';
import styles from './index.less';
const { SubMenu } = Menu;
@@ -14,7 +15,7 @@ const { SubMenu } = Menu;
// icon: 'http://demo.com/icon.png',
// icon: ,
const getIcon = icon => {
- if (typeof icon === 'string' && icon.indexOf('http') === 0) {
+ if (typeof icon === 'string' && isUrl(icon)) {
return ;
}
if (typeof icon === 'string') {