fix: 修复loading组件的 依赖问题。不在运行中

This commit is contained in:
hawk86104 2025-03-17 09:44:49 +08:00
parent 5ac9ef82b7
commit 3279d71a62
6 changed files with 22 additions and 16 deletions

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2024-03-13 15:00:34
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-09-24 18:33:28
* @LastEditTime: 2025-03-17 09:36:28
-->
<template>
<div v-if="!hasFinishLoading" class="absolute bg-grey-600 t-0 l-0 w-full h-full z-99999999 flex justify-center items-center text-black font-mono bg-black">
@ -23,6 +23,7 @@
<script setup lang="ts">
import { hasPlugin } from '@/common/utils'
import { useProgress } from '@tresjs/cientos'
import { Resource } from 'PLS/resourceManager'
const props = withDefaults(
defineProps<{
@ -42,8 +43,8 @@ let hasFinishLoading = null as any
if (props.useResourceManager) {
if (hasPlugin('resourceManager', '资源管理器插件')) {
const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
// const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
// const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
progress = Resource.progress
hasFinishLoading = Resource.hasAllFinished
}

View File

@ -25,6 +25,7 @@
<script setup lang="ts">
import { hasPlugin } from '@/common/utils'
import { useProgress } from '@tresjs/cientos'
import { Resource } from 'PLS/resourceManager'
const props = withDefaults(
defineProps<{
@ -46,8 +47,8 @@ let hasFinishLoading = null as any
if (props.useResourceManager) {
if (hasPlugin('resourceManager', '资源管理器插件')) {
const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
// const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
// const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
progress = Resource.progress
hasFinishLoading = Resource.hasAllFinished
}

View File

@ -81,6 +81,7 @@
<script setup lang="ts">
import { hasPlugin } from '@/common/utils'
import { useProgress } from '@tresjs/cientos'
import { Resource } from 'PLS/resourceManager'
const props = withDefaults(
defineProps<{
@ -101,8 +102,8 @@ let hasFinishLoading = null as any
if (props.useResourceManager) {
if (hasPlugin('resourceManager', '资源管理器插件')) {
const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
// const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
// const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
progress = Resource.progress
hasFinishLoading = Resource.hasAllFinished
}

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2024-03-13 18:46:19
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-08-12 11:05:50
* @LastEditTime: 2025-03-17 09:37:48
-->
<template>
<div v-if="!hasFinishLoading" class="absolute bg-grey-600 t-0 l-0 w-full h-full z-99999999 flex justify-center items-center text-black font-mono bg-black">
@ -22,6 +22,7 @@
<script setup lang="ts">
import { hasPlugin } from '@/common/utils'
import { useProgress } from '@tresjs/cientos'
import { Resource } from 'PLS/resourceManager'
const props = withDefaults(
defineProps<{
@ -40,8 +41,8 @@ let hasFinishLoading = null as any
if (props.useResourceManager) {
if (hasPlugin('resourceManager', '资源管理器插件')) {
const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
// const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
// const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
progress = Resource.progress
hasFinishLoading = Resource.hasAllFinished
}

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2024-03-13 17:14:11
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-08-12 11:09:17
* @LastEditTime: 2025-03-17 09:38:02
-->
<template>
<div
@ -33,6 +33,7 @@
<script setup lang="ts">
import { hasPlugin } from '@/common/utils'
import { useProgress } from '@tresjs/cientos'
import { Resource } from 'PLS/resourceManager'
const props = withDefaults(
defineProps<{
@ -51,8 +52,8 @@ let hasFinishLoading = null as any
if (props.useResourceManager) {
if (hasPlugin('resourceManager', '资源管理器插件')) {
const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
// const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
// const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
progress = Resource.progress
hasFinishLoading = Resource.hasAllFinished
}

View File

@ -4,7 +4,7 @@
* @Autor: 地虎降天龙
* @Date: 2024-03-13 17:14:11
* @LastEditors: 地虎降天龙
* @LastEditTime: 2024-08-12 11:06:13
* @LastEditTime: 2025-03-17 09:38:10
-->
<template>
<div v-if="!hasFinishLoading" class="absolute bg-grey-600 t-0 l-0 w-full h-full z-99999999 flex justify-center items-center text-black font-mono bg-black">
@ -30,6 +30,7 @@
<script setup lang="ts">
import { hasPlugin } from '@/common/utils'
import { useProgress } from '@tresjs/cientos'
import { Resource } from 'PLS/resourceManager'
const props = withDefaults(
defineProps<{
@ -49,8 +50,8 @@ let hasFinishLoading = null as any
if (props.useResourceManager) {
if (hasPlugin('resourceManager', '资源管理器插件')) {
const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
// const modules = import.meta.glob('/src/plugins/resourceManager/index.js')
// const { Resource } = await modules['/src/plugins/resourceManager/index.js']()
progress = Resource.progress
hasFinishLoading = Resource.hasAllFinished
}