Skip to content

Commit a0609a9

Browse files
committed
fix(admin,core): 修正类型错误
1 parent 7849d3a commit a0609a9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/dashboard/src/main.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,4 +184,4 @@ const o: Options = {
184184
toolbar: [createSearch(new Hotkey('k', 'control')), createClear(), createFullscreen(), createLockScreen()],
185185
};
186186

187-
create('app', o);
187+
await create('app', o);

packages/admin/src/app/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { build as buildOptions, type Options, presetConfigName } from './options
1818
* @param o - 项目的初始化选项;
1919
* @param router - 指定路由对象,默认值同 {@link run} 中对应的参数;
2020
*/
21-
export async function create(elementID: string, o: Options, router?: typeof Router) {
21+
export async function create(elementID: string, o: Options, router?: typeof Router): Promise<void> {
2222
const opt = buildOptions(o);
2323

2424
const routes: Array<RouteDefinition> = [

packages/core/src/errors/logic.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export class LogicError extends Error {
1919
* 无法找到上下文环境
2020
*/
2121
export class ContextNotFoundError extends LogicError {
22-
#ctx: string;
22+
readonly #ctx: string;
2323

2424
constructor(name: string) {
2525
super(`无法找到上下文环境:${name}`);

0 commit comments

Comments
 (0)