duy 3 months ago
parent
commit
c9a47fed69
2 changed files with 5 additions and 3 deletions
  1. 4 2
      src/views/archives/manage/ai.vue
  2. 1 1
      src/views/archives/manage/tuning.vue

+ 4 - 2
src/views/archives/manage/ai.vue

@@ -47,7 +47,7 @@
 </template>
 
 <script setup>
-import { onMounted, ref } from 'vue'
+import { onActivated, ref } from 'vue'
 import aiApi from '~api/ai/ai.js'
 import { useAppStore } from '~src/store'
 import { useRoute, useRouter } from 'vue-router'
@@ -70,8 +70,9 @@ const tableData = ref([
 ])
 
 //渲染完成
-onMounted(() => {
+onActivated(() => {
     // getClassIfyList()
+    taskId.value = useRoutes.query.taskId
     getTableData()
 
 })
@@ -85,6 +86,7 @@ const pageChange = ({ current, size }) => {
 }
 const tableLoading = ref(false)
 const getTableData = async () => {
+ console.log(taskId.value, 'taskId.value')
  
     tableLoading.value = true
     const { error, code, data } = await aiApi.getPage({

+ 1 - 1
src/views/archives/manage/tuning.vue

@@ -1324,7 +1324,7 @@ const getInfoDetailClick = (item)=>{
     const { status } = item
     if (status === 1) return 
 
-        router.push({ path: '/archives/manage/ai', query:item.taskId })//ai
+        router.push({ path: '/archives/manage/ai', query:{ taskId:item.taskId } })//ai
 }
 const taskListVisible = ref(false)