修改Invoker载入事件名

This commit is contained in:
2025-06-03 18:21:10 +08:00
parent 326ef4ec77
commit 49afb5e3a6
2 changed files with 3 additions and 3 deletions

View File

@@ -1,7 +1,7 @@
{
"name": "vue-modpage",
"private": true,
"version": "1.0.5",
"version": "1.0.6",
"type": "module",
"files": [
"public",

View File

@@ -36,7 +36,7 @@ export default defineComponent({
required: false,
}
},
emits: ["destroyed", "initFinished"],
emits: ["destroyed", "load"],
setup(props, { slots, expose, emit }) {
/** Invoker实例ID */
const id = ++idCount;
@@ -66,7 +66,7 @@ export default defineComponent({
function initFinish(context: ModContext) {
receiver = context;
console.log('[Mod-Invoker] 3.1. invoker init finished', receiver);
emit('initFinished');
emit('load');
}
function getRefs() {