|
@@ -35,7 +35,7 @@
|
|
|
|
|
|
<script>
|
|
|
import path from 'path'
|
|
|
-import { validateURL } from '@/utils/validate'
|
|
|
+import { isExternal } from '@/utils'
|
|
|
import Item from './Item'
|
|
|
import AppLink from './Link'
|
|
|
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
return path.resolve(this.basePath, routePath)
|
|
|
},
|
|
|
isExternalLink(routePath) {
|
|
|
- return validateURL(routePath)
|
|
|
+ return isExternal(routePath)
|
|
|
}
|
|
|
}
|
|
|
}
|