Compare commits

..
4 Commits
Author SHA1 Message Date
Hooray Hu b3c12c9f37 chore: release v3.1.1 2023-05-27 17:01:55 +08:00
Hooray Hu e6e1ec9d12 chore: 调整 copyright 默认设置 2023-05-27 01:51:32 +08:00
Hooray Hu 98d288f69f chore: 代码微调 2023-05-24 10:58:09 +08:00
Hooray Hu b297d38aa4 refactor: 使用 defineOptions 设置组件 name 2023-05-24 10:57:10 +08:00
6 changed files with 16 additions and 12 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
{
"version": "3.1.0",
"version": "3.1.1",
"scripts": {
"dev": "vite",
"build:test": "vue-tsc --noEmit && vite build --mode test",
+1 -1
View File
@@ -86,7 +86,7 @@
}
.fantastic-admin-home .text::after {
content: '…';
content: "…";
position: absolute;
padding-left: 5px;
}
@@ -2,6 +2,10 @@
import eventBus from '@/utils/eventBus'
import useSettingsStore from '@/store/modules/settings'
defineOptions({
name: 'HotkeysIntro',
})
const isShow = ref(false)
const settingsStore = useSettingsStore()
+4 -4
View File
@@ -45,10 +45,10 @@ const globalSettingsDefault: RecursiveRequired<Settings.all> = {
enableHotkeys: true,
},
copyright: {
enable: true,
dates: '2020-2023',
company: 'Fantastic-admin',
website: 'https://hooray.gitee.io/fantastic-admin/',
enable: false,
dates: '',
company: '',
website: '',
beian: '',
},
}
+2 -2
View File
@@ -120,8 +120,8 @@ const useMenuStore = defineStore(
function filterAsyncMenus<T extends Menu.recordMainRaw[] | Menu.recordRaw[]>(menus: T, permissions: string[]): T {
const res: any = []
menus.forEach((menu) => {
const tmpMenu = cloneDeep(menu)
if (hasPermission(permissions, tmpMenu)) {
if (hasPermission(permissions, menu)) {
const tmpMenu = cloneDeep(menu)
if (tmpMenu.children) {
tmpMenu.children = filterAsyncMenus(tmpMenu.children, permissions) as Menu.recordRaw[]
tmpMenu.children.length && res.push(tmpMenu)
+4 -4
View File
@@ -163,22 +163,22 @@ declare namespace Settings {
interface copyright {
/**
* 是否开启底部版权,同时在路由 meta 对象里可以单独设置某个路由是否显示底部版权信息
* @默认值 `true`
* @默认值 `false`
*/
enable?: boolean
/**
* 网站运行日期
* @默认值 `'2020-2022'`
* @默认值 `''`
*/
dates?: string
/**
* 公司名称
* @默认值 `'Fantastic-admin'`
* @默认值 `''`
*/
company?: string
/**
* 网站地址
* @默认值 `'https://hooray.gitee.io/fantastic-admin/'`
* @默认值 `''`
*/
website?: string
/**