mirror of
https://gitee.com/dromara/go-view.git
synced 2026-04-23 00:00:12 +08:00
fix: 优化组件渲染方式
This commit is contained in:
@@ -2,6 +2,7 @@ import { PackagesType, ConfigType } from '@/packages/index.d'
|
||||
|
||||
export { ConfigType }
|
||||
|
||||
export { PackagesType }
|
||||
export interface PackagesStoreType {
|
||||
packagesList: PackagesType
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { PackagesStoreType, ConfigType } from './packagesStore.d'
|
||||
import { PackagesStoreType, PackagesType } from './packagesStore.d'
|
||||
import { packagesList } from '@/packages/index'
|
||||
|
||||
export const usePackagesStore = defineStore({
|
||||
@@ -8,11 +8,8 @@ export const usePackagesStore = defineStore({
|
||||
packagesList
|
||||
}),
|
||||
getters: {
|
||||
getPackagesList(): ConfigType | {} {
|
||||
if (this.packagesList && this.packagesList.charts) {
|
||||
return this.packagesList.charts
|
||||
}
|
||||
return {}
|
||||
getPackagesList(): PackagesType {
|
||||
return this.packagesList
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user