fix config
Publish to npm / publish (push) Failing after 8s
Publish to npm / publish (push) Failing after 8s
This commit is contained in:
+3
-3
@@ -15,7 +15,7 @@ export const useSimApi = defineStore('simapi', {
|
||||
},
|
||||
actions: {
|
||||
// 所有方法直接代理到 core
|
||||
async loadFromFile(file: string = 'config.json'): Promise<void> {
|
||||
async loadFromFile(file: string = '/config.json'): Promise<void> {
|
||||
return this._core.loadFromFile(file)
|
||||
},
|
||||
|
||||
@@ -76,8 +76,8 @@ export const useSimApi = defineStore('simapi', {
|
||||
return this._core.getEndpoint(name)
|
||||
},
|
||||
|
||||
async getVersion(endpointName?: string): Promise<SimApiVersions> {
|
||||
return this._core.getVersion(endpointName)
|
||||
async getConfig(reload = false, endpointName?: string): Promise<Map<string, object>> {
|
||||
return this._core.getConfig(reload, endpointName)
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user