This commit is contained in:
jxxghp
2024-05-16 20:31:30 +08:00
parent 5580921b7d
commit fc877ed836
14 changed files with 53 additions and 88 deletions

View File

@@ -2,14 +2,10 @@
import draggable from 'vuedraggable'
import api from '@/api'
import { isNullOrEmptyObject } from '@/@core/utils'
import { useDisplay } from 'vuetify'
import { DashboardItem } from '@/api/types'
import store from '@/store'
import DashboardElement from '@/components/misc/DashboardElement.vue'
// 显示器宽度
const display = useDisplay()
// 从Vuex Store中获取superuser信息
const superUser = store.state.auth.superUser
@@ -107,6 +103,9 @@ const dashboardConfigs = ref<DashboardItem[]>([
// 有仪表板的插件
const dashboardPlugins = ref<any[]>([])
// 插件仪表板的刷新状态
const pluginDashboardRefreshStatus = ref<{ [key: string]: boolean }>({})
// 弹窗
const dialog = ref(false)
@@ -196,9 +195,6 @@ async function getDashboardPlugins() {
}
}
// 插件仪表板的刷新状态
const pluginDashboardRefreshStatus = ref<{ [key: string]: boolean }>({})
// 获取一个插件的仪表板配置项
async function getPluginDashboard(id: string) {
try {