使用JSON文件初始化
Publish to npm / publish (push) Failing after 11s

This commit is contained in:
2026-05-04 19:56:48 +08:00
parent fa4032f239
commit 3ece81fc06
3 changed files with 102 additions and 265 deletions
+2 -4
View File
@@ -15,8 +15,8 @@ export const useSimApi = defineStore('simapi', {
},
actions: {
// 所有方法直接代理到 core
autoInit(): void {
this._core.autoInit()
async loadFromFile(file: string = 'config.json'): Promise<void> {
return this._core.loadFromFile(file)
},
configure(options: SimApiOptions): void {
@@ -81,5 +81,3 @@ export const useSimApi = defineStore('simapi', {
},
},
})