Template
1
0
mirror of https://github.com/un-pany/v3-admin-vite.git synced 2025-04-20 10:59:21 +08:00

docs: 添加欢迎 star 标语

This commit is contained in:
pany 2022-11-07 17:44:48 +08:00
parent 675bd11fa9
commit dc108fdbff
3 changed files with 23 additions and 3 deletions

View File

@ -1,5 +1,5 @@
<div align="center">
<img alt="V3-Admin-Vite-Logo" width="120" height="120" src="./src/assets/layout/logo.png">
<img alt="V3 Admin Vite Logo" width="120" height="120" src="./src/assets/layout/logo.png">
<h1>V3 Admin Vite</h1>
<span>English | <a href="./README.zh-CN.md">中文</a></span>
</div>
@ -124,6 +124,10 @@ Thanks you to all the contributors!
<img src="https://contrib.rocks/image?repo=un-pany/v3-admin-vite" />
</a>
## 💕 Thanks star
Small projects are not easy to get a star, if you like this project, welcome to support a star! This is the only motivation for the author to maintain it on an ongoing basis (whisper: it's free after all)
## Group
QQ group1014374415 (left) && add me on WeChatInvite you to join WeChat group (right)

View File

@ -1,5 +1,5 @@
<div align="center">
<img alt="V3-Admin-Vite-Logo" width="120" height="120" src="./src/assets/layout/logo.png">
<img alt="V3 Admin Vite Logo" width="120" height="120" src="./src/assets/layout/logo.png">
<h1>V3 Admin Vite</h1>
<span><a href="./README.md">English</a> | 中文</span>
</div>
@ -124,6 +124,10 @@ pnpm lint
<img src="https://contrib.rocks/image?repo=un-pany/v3-admin-vite" />
</a>
## 💕 感谢 Star
小项目获取 star 不易,如果你喜欢这个项目的话,欢迎支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)
## 可有可无的群
QQ 群1014374415&& 加我微信,拉你进微信群(右)

View File

@ -1,8 +1,9 @@
<script lang="ts" setup>
import { ref } from "vue"
import { h, ref } from "vue"
import { useUserStore } from "@/store/modules/user"
import AdminDashboard from "./admin/index.vue"
import EditorDashboard from "./editor/index.vue"
import { ElNotification } from "element-plus"
type CurrentRoleType = "admin" | "editor"
@ -11,6 +12,17 @@ const currentRole = ref<CurrentRoleType>("admin")
if (!userStore.roles.includes("admin")) {
currentRole.value = "editor"
}
ElNotification({
title: "Hello",
message: h(
"a",
{ style: "color: teal", target: "_blank", href: "https://github.com/un-pany/v3-admin-vite" },
"小项目获取 star 不易,如果你喜欢这个项目的话,欢迎点击这里支持一个 star !这是作者持续维护的唯一动力(小声:毕竟是免费的)"
),
duration: 0,
position: "bottom-right"
})
</script>
<template>