|
@@ -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({
|