Errors Files
1 src/views/system/oss/config.vue:167 TS2769: No overload matches this call
1 src/views/system/user/index.vue:564 TS2322: Type XXX is not assignable to type 'string'
src/views/system/oss/config.vue:167:17 - error TS2769: No overload matches this call.
Overload 2 of 3, '(value: FieldOption[]): Ref<{ key: number; label: string; visible: boolean; children: ...[]; }[]>', gave the following error.
Property 'children' is missing in type '{ key: number; label: string; visible: true; }' but required in type 'FieldOption'.
167 const columns = ref<FieldOption[]>([
~~~~~~~~~~~~~~~~~~~~
168 { key: 0, label: `主建`, visible: true },
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
176 { key: 8, label: `状态`, visible: true }
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
177 ]);
~~
src/types/global.d.ts:16:5
16 children: Array<FieldOption>;
src/views/system/user/index.vue:564:3 - error TS2322: Type '{ [x: number]: string; toString: () => string; charAt: (pos: number) => string; charCodeAt: (index: number) => number; concat: (...strings: string[]) => string; indexOf: (searchString: string, position?: number | undefined) => number; ... 44 more ...; [Symbol.iterator]: () => IterableIterator<...>; }' is not assignable to type 'string'.
564 form.value.password = initPassword.value;
~~~~~~~~~~~~~~~~~~~
Found 2 errors in 2 files.
Errors Files
1 src/views/system/oss/config.vue:167
1 src/views/system/user/index.vue:564
刚拉下来的代码,没有修改,打包正式环境会报错, node 版本v16.20.2: