From 8b87e061129277fd737f1ed6071282ea8a3e2f06 Mon Sep 17 00:00:00 2001 From: bqy_fe <1743369777@qq.com> Date: Thu, 7 Apr 2022 17:38:13 +0800 Subject: [PATCH] fix(pages): about page link issues --- src/views/account/about.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/account/about.vue b/src/views/account/about.vue index b82905bd1..8e90445a1 100644 --- a/src/views/account/about.vue +++ b/src/views/account/about.vue @@ -59,9 +59,12 @@ import { Descriptions, Card, Tag } from 'ant-design-vue'; const { pkg, lastBuildTime } = __APP_INFO__; - const BlankLink = ({ url = '', text }) => ( - - {text} - - ); + const BlankLink = ({ url = '', text }) => { + const target = /^http(s)?:/.test(url) ? url : `https://www.npmjs.com/package/${url}`; + return ( + + {text} + + ); + };