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