icssoa 1 năm trước cách đây
mục cha
commit
32359861b5

+ 1 - 1
src/cool/bootstrap/eps.ts

@@ -4,7 +4,7 @@ import { Module } from "../types";
 import { path2Obj } from "../utils";
 import { config, isDev } from "/@/config";
 import { eps } from "virtual:eps";
-import { hmr } from "../hook";
+import { hmr } from "../hooks";
 import { module } from "../module";
 
 // 更新事件

+ 1 - 1
src/cool/bootstrap/module.ts

@@ -2,7 +2,7 @@ import { App } from "vue";
 import { isFunction, orderBy, chain } from "lodash-es";
 import { filename } from "../utils";
 import { module } from "../module";
-import { hmr } from "../hook";
+import { hmr } from "../hooks";
 
 // 扫描文件
 const files: any = import.meta.glob(

+ 0 - 0
src/cool/hook/browser.ts → src/cool/hooks/browser.ts


+ 0 - 0
src/cool/hook/hmr.ts → src/cool/hooks/hmr.ts


+ 0 - 0
src/cool/hook/index.ts → src/cool/hooks/index.ts


+ 0 - 0
src/cool/hook/mitt.ts → src/cool/hooks/mitt.ts


+ 1 - 1
src/cool/index.ts

@@ -1,6 +1,6 @@
 export * from "./service";
 export * from "./bootstrap";
-export * from "./hook";
+export * from "./hooks";
 export * from "./module";
 export * from "./router";
 export * from "./types";

+ 2 - 2
src/cool/module/index.ts

@@ -1,5 +1,5 @@
-import { Module } from "../types";
-import { hmr } from "../hook";
+import { type Module } from "../types";
+import { hmr } from "../hooks";
 import { dirs } from "virtual:module";
 
 // 模块列表

+ 1 - 1
src/cool/service/index.ts

@@ -1,4 +1,4 @@
-import { hmr } from "../hook";
+import { hmr } from "../hooks";
 import { BaseService } from "./base";
 
 // service 数据集合