mirror of
https://github.com/motajs/template.git
synced 2026-11-23 14:04:30 +08:00
refactor: Delete global loading & hook object
This commit is contained in:
1 parent
7c155be5ce
commit
d8fa4b8507
16 files changed
+33
-978
No files matched your search
@@ -23,7 +23,6 @@ import { transitioned } from '../use';
|
||||
import { cosh, CurveMode, linear } from '@motajs/animate';
|
||||
import { clamp } from 'lodash-es';
|
||||
import { sleep } from '@motajs/common';
|
||||
import { loading } from '@user/data-base';
|
||||
import { GameTitleUI } from './title';
|
||||
import { client } from '../../core';
|
||||
|
||||
@@ -62,7 +61,6 @@ export const LoadScene = defineComponent<ILoadProps>(props => {
|
||||
];
|
||||
|
||||
const loadEnd = async () => {
|
||||
loading.emit('loaded');
|
||||
alpha.set(0);
|
||||
await sleep(400);
|
||||
props.controller.closeAll();
|
||||
|
||||
Reference in new issue
Block a user