Skip to content

Commit

Permalink
fix(pages): about page link issues
Browse files Browse the repository at this point in the history
  • Loading branch information
buqiyuan committed Apr 7, 2022
1 parent c18b3e5 commit 62c840c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
15 changes: 9 additions & 6 deletions src/views/account/about.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Card>
<Card.Meta title="关于">
<template #description>
<BlankLink :url="pkg.author.url" :text="pkg.name" />的前端项目是基于Vue3.x、Vite2.x、
<BlankLink :url="pkg.author.url" :text="pkg.name" />的前端项目是基于Vue3.x、Vue-CLI5.x、
Ant-Design-Vue3.x 、TypeScript4.x开发,
内置了动态路由、权限验证、并提供了常用的功能组件,帮助你快速搭建企业级中后台产品原型。
原则上不会限制任何代码用于商用。
Expand Down Expand Up @@ -59,9 +59,12 @@
import { Descriptions, Card, Tag } from 'ant-design-vue';
const { pkg, lastBuildTime } = __APP_INFO__;
const BlankLink = ({ url = '', text }) => (
<a href={`https://www.npmjs.com/package/${url}`} target="_blank">
{text}
</a>
);
const BlankLink = ({ url = '', text }) => {
const target = /^http(s)?:/.test(url) ? url : `https://www.npmjs.com/package/${url}`;
return (
<a href={target} target="_blank">
{text}
</a>
);
};
</script>
5 changes: 2 additions & 3 deletions src/views/login/index.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<template>
<div class="login-box">
<div class="login-logo">
<svg-icon name="logo" :size="45" />
<!-- <img src="@/assets/images/logo.png" alt="" /> -->
<!-- <svg-icon name="logo" :size="45" /> -->
<img src="~@/assets/images/logo.png" width="45" />
<h1 class="mb-0 ml-2 text-3xl font-bold">Antd Admin</h1>
</div>
<a-form layout="horizontal" :model="state.formInline" @submit.prevent="handleSubmit">
Expand Down Expand Up @@ -55,7 +55,6 @@
import { message, Modal } from 'ant-design-vue';
import { useUserStore } from '@/store/modules/user';
import { getImageCaptcha } from '@/api/login';
import { SvgIcon } from '@/components/basic/svg-icon';
const state = reactive({
loading: false,
Expand Down

1 comment on commit 62c840c

@vercel
Copy link

@vercel vercel bot commented on 62c840c Apr 7, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vite-vue3-admin – ./

vite-vue3-admin.vercel.app
vite-vue3-admin-buqiyuan.vercel.app
vite-vue3-admin-git-main-buqiyuan.vercel.app

Please sign in to comment.