mirror of
https://github.com/motajs/template.git
synced 2026-11-13 06:24: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
@@ -13,6 +13,4 @@ export function create() {
|
||||
Mota.register('@user/data-base', DataBase);
|
||||
Mota.register('@user/data-system', DataSystem);
|
||||
Mota.register('@user/data-state', DataState);
|
||||
|
||||
DataBase.loading.emit('dataRegistered');
|
||||
}
|
||||
@@ -1,7 +1,5 @@
|
||||
import { createMota } from './mota';
|
||||
import { create } from './create';
|
||||
import { loading } from '@user/data-base';
|
||||
import { Patch } from '@motajs/legacy-common';
|
||||
import { logger } from '@motajs/common';
|
||||
|
||||
export function createData() {
|
||||
@@ -14,10 +12,6 @@ export function createData() {
|
||||
`此时录像验证中可以看到完整正确的报错栈。调试完毕后,记得将它重新设为 false`
|
||||
);
|
||||
}
|
||||
|
||||
loading.once('coreInit', () => {
|
||||
Patch.patchAll();
|
||||
});
|
||||
}
|
||||
|
||||
export * from './mota';
|
||||
Reference in new issue
Block a user