feat(Menu.vue): 菜单路由添加外链支持
This commit is contained in:
@@ -6,7 +6,8 @@
|
||||
* @param {string} path
|
||||
* @returns {Boolean}
|
||||
*/
|
||||
export function isExternal(path : string) {
|
||||
return /^(https?:|mailto:|tel:)/.test(path)
|
||||
export function isExternal(path: string) {
|
||||
const isExternal = /^(https?:|http?:|mailto:|tel:)/.test(path)
|
||||
return isExternal
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user