mirror of
https://github.com/fantastic-admin/basic.git
synced 2026-10-07 03:43:30 +08:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b3c12c9f37 | ||
|
|
e6e1ec9d12 | ||
|
|
98d288f69f | ||
|
|
b297d38aa4 |
+1
-1
@@ -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
@@ -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()
|
||||
|
||||
@@ -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: '',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
Vendored
+4
-4
@@ -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
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user