zs 2 years ago
parent
commit
e34d48b554
1 changed files with 3 additions and 4 deletions
  1. 3 4
      src/views/user/scientist/studio/info.vue

+ 3 - 4
src/views/user/scientist/studio/info.vue

@@ -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;
     }
   }