refactor: 视图插件自定义icon

This commit is contained in:
fit2cloud-chenyw
2022-03-31 17:52:22 +08:00
parent d9e2f61314
commit 4c0449c3ce
6 changed files with 124 additions and 17 deletions

View File

@@ -7,7 +7,7 @@
* @returns {Boolean}
*/
export function isExternal(path) {
return /^(https?:|mailto:|tel:)/.test(path)
return /^(https?:|mailto:|tel:)/.test(path) || /^(http?:|mailto:|tel:)/.test(path) || path.startsWith('/api/pluginCommon/staticInfo')
}
/**