mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-06 03:58:04 +08:00
build: 升级 vite 到4.x版本, 修改不兼容的代码
This commit is contained in:
parent
292ae4d03c
commit
3d56037b44
@ -75,7 +75,7 @@
|
|||||||
"sass": "^1.49.11",
|
"sass": "^1.49.11",
|
||||||
"sass-loader": "^12.6.0",
|
"sass-loader": "^12.6.0",
|
||||||
"typescript": "4.6.3",
|
"typescript": "4.6.3",
|
||||||
"vite": "2.9.9",
|
"vite": "4.2.1",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
"vite-plugin-importer": "^0.2.5",
|
"vite-plugin-importer": "^0.2.5",
|
||||||
"vite-plugin-mock": "^2.9.6",
|
"vite-plugin-mock": "^2.9.6",
|
||||||
|
2831
pnpm-lock.yaml
generated
2831
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@ -15,7 +15,7 @@ export interface IResources {
|
|||||||
const fileSuffix = ['earth', 'gradient', 'redCircle', 'label', 'aperture', 'glow', 'light_column', 'aircraft']
|
const fileSuffix = ['earth', 'gradient', 'redCircle', 'label', 'aperture', 'glow', 'light_column', 'aircraft']
|
||||||
const textures: ITextures[] = []
|
const textures: ITextures[] = []
|
||||||
|
|
||||||
const modules = import.meta.globEager("../../images/earth/*");
|
const modules: Record<string, { default: string }> = import.meta.glob("../../images/earth/*", { eager: true })
|
||||||
|
|
||||||
for(let item in modules) {
|
for(let item in modules) {
|
||||||
const n = item.split('/').pop()
|
const n = item.split('/').pop()
|
||||||
|
@ -4,9 +4,15 @@ import { InformationList } from '@/packages/components/Informations/index'
|
|||||||
import { TableList } from '@/packages/components/Tables/index'
|
import { TableList } from '@/packages/components/Tables/index'
|
||||||
import { PackagesCategoryEnum, PackagesType, ConfigType, FetchComFlagType } from '@/packages/index.d'
|
import { PackagesCategoryEnum, PackagesType, ConfigType, FetchComFlagType } from '@/packages/index.d'
|
||||||
|
|
||||||
const configModules = import.meta.globEager('./components/**/config.vue')
|
const configModules: Record<string, { default: string }> = import.meta.glob('./components/**/config.vue', {
|
||||||
const indexModules = import.meta.globEager('./components/**/index.vue')
|
eager: true
|
||||||
const imagesModules = import.meta.globEager('../assets/images/chart/**')
|
})
|
||||||
|
const indexModules: Record<string, { default: string }> = import.meta.glob('./components/**/index.vue', {
|
||||||
|
eager: true
|
||||||
|
})
|
||||||
|
const imagesModules: Record<string, { default: string }> = import.meta.glob('../assets/images/chart/**', {
|
||||||
|
eager: true
|
||||||
|
})
|
||||||
|
|
||||||
// * 所有图表
|
// * 所有图表
|
||||||
export let packagesList: PackagesType = {
|
export let packagesList: PackagesType = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user