@@ -73,13 +73,12 @@
import { ref, onMounted, toRaw } from 'vue';
import { useRoute } from 'vue-router';
import useUserStore from '@/store/modules/user'
-import { getSmarttalkPage, getPrepareById } from '@/api/file'
-import SetHomework from '@/views/prepare/container/set-homework.vue'
+import { getSmarttalkPage } from '@/api/file'
+import SetHomework from '@/components/set-homework/index.vue'
import FileImage from '@/components/file-image/index.vue'
import { useGetHomework } from '@/hooks/useGetHomework'
import { ipcMsgSend, ipcMsgSend2, ipcMsgInvoke } from '@/utils/tool'
import { useToolState } from '@/store/modules/tool'
-import { asyncLocalFile } from '@/utils/talkFile'
import Lesson from './lesson.vue';
import { parseCataByNode } from '@/utils/talkFile'
import outLink from '@/utils/linkConfig'
@@ -97,11 +96,9 @@ const dataList = ref([])
const setDialog = ref(false)
// 资源数据
const resourceList = ref([])
-
-//
+//当前点击的数据
const curRow = ref('')
-
const sendHomework = (row) => {
curRow.value = row
setTimeout(() => {
@@ -112,13 +109,13 @@ const sendHomework = (row) => {
//
const closeHomework = async() => {
ipcMsgSend('tool-sphere:set:ignore', true)
- // 发送im消息-推送作业(app|平板)
- console.log('发送im消息-推送作业(app|平板)', curRow.value.id)
- await ipcMsgInvoke('im-chat:msg', curRow.value.id, MsgEnum.HEADS.MSG_0016)
- setDialog.value = false
}
-
-
+// 推送成功
+const successHomework = ()=>{
+ // 发送im消息-推送作业(app|平板)
+ ipcMsgInvoke('im-chat:msg', curRow.value.id, MsgEnum.HEADS.MSG_0016)
+}
+// 章节目录change
const changeChapter = async (data)=>{
const { res } = await useGetHomework(data)
dataList.value = res
diff --git a/src/renderer/src/views/tool/components/lesson.vue b/src/renderer/src/views/tool/components/lesson.vue
index e6f7914..75241ae 100644
--- a/src/renderer/src/views/tool/components/lesson.vue
+++ b/src/renderer/src/views/tool/components/lesson.vue
@@ -13,9 +13,8 @@