|
@@ -24,8 +24,7 @@ import type { IQueryResult } from '@/util/types.util';
|
|
|
const studio = StudioStore();
|
|
|
const scientistsettle = ScientistsettleStore();
|
|
|
let route = useRoute();
|
|
|
-interface dataItem {}
|
|
|
-let info: Ref<{ team: Array<dataItem> }> = ref({ team: [] });
|
|
|
+let info: Ref<{ team: Array<[]> }> = ref({ team: [] });
|
|
|
onMounted(async () => {
|
|
|
await search();
|
|
|
});
|
|
@@ -33,9 +32,9 @@ const search = async () => {
|
|
|
if (route.query && route.query.id) {
|
|
|
let id = route.query.id;
|
|
|
const res: IQueryResult = await studio.fetch(id);
|
|
|
- info.value = res.data as { team: Array<dataItem> };
|
|
|
+ info.value = res.data as { team: Array<[]> };
|
|
|
if (route.query.scientist_id) {
|
|
|
- const arr = await scientistsettle.fetch(route.query.scientist_id);
|
|
|
+ const arr: any = await scientistsettle.fetch(route.query.scientist_id);
|
|
|
info.value.team = arr.data.team;
|
|
|
}
|
|
|
}
|