We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2031927 commit 8b87e06Copy full SHA for 8b87e06
src/views/account/about.vue
@@ -59,9 +59,12 @@
59
import { Descriptions, Card, Tag } from 'ant-design-vue';
60
const { pkg, lastBuildTime } = __APP_INFO__;
61
62
- const BlankLink = ({ url = '', text }) => (
63
- <a href={`https://www.npmjs.com/package/${url}`} target="_blank">
64
- {text}
65
- </a>
66
- );
+ const BlankLink = ({ url = '', text }) => {
+ const target = /^http(s)?:/.test(url) ? url : `https://www.npmjs.com/package/${url}`;
+ return (
+ <a href={target} target="_blank">
+ {text}
67
+ </a>
68
+ );
69
+ };
70
</script>
0 commit comments