mirror of
https://github.com/unanmed/HumanBreak.git
synced 2026-11-25 02:24:30 +08:00
fix: 迁移过程中产生的所有报错
This commit is contained in:
1 parent
0679bbb1a5
commit
4fda246a9a
72 files changed
+225
-189
No files matched your search
@@ -1,9 +1,15 @@
|
||||
import { patchAll } from '@user/data-fallback';
|
||||
import { createMota } from './mota';
|
||||
import { create } from './create';
|
||||
import { loading } from '@user/data-base';
|
||||
import { Patch } from '@motajs/legacy-common';
|
||||
|
||||
createMota();
|
||||
patchAll();
|
||||
create();
|
||||
|
||||
loading.once('coreInit', () => {
|
||||
Patch.patchAll();
|
||||
});
|
||||
|
||||
export * from './mota';
|
||||
@@ -20,6 +20,9 @@ import type * as DataState from '@user/data-state';
|
||||
import type * as DataUtils from '@user/data-utils';
|
||||
import type * as LegacyPluginClient from '@user/legacy-plugin-client';
|
||||
import type * as LegacyPluginData from '@user/legacy-plugin-data';
|
||||
// ---------- 必要的第三方库
|
||||
import type * as MutateAnimate from 'mutate-animate';
|
||||
import type * as Vue from 'vue';
|
||||
|
||||
interface ModuleInterface {
|
||||
'@motajs/client': typeof Client;
|
||||
@@ -44,6 +47,9 @@ interface ModuleInterface {
|
||||
'@user/data-utils': typeof DataUtils;
|
||||
'@user/legacy-plugin-client': typeof LegacyPluginClient;
|
||||
'@user/legacy-plugin-data': typeof LegacyPluginData;
|
||||
// ---------- 必要的第三方库
|
||||
MutateAnimate: typeof MutateAnimate;
|
||||
Vue: typeof Vue;
|
||||
}
|
||||
|
||||
export interface IMota {
|
||||
|
||||
Reference in new issue
Block a user