diff --git a/src/renderer/src/views/tool/components/homework.vue b/src/renderer/src/views/tool/components/homework.vue
index 396b780..ce13160 100644
--- a/src/renderer/src/views/tool/components/homework.vue
+++ b/src/renderer/src/views/tool/components/homework.vue
@@ -25,6 +25,7 @@
+ 推送
@@ -82,8 +83,9 @@ 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'
-const { ipcRenderer } = window.electron || {}
+import { ipcMsgSend2 } from '@/utils/tool'
const route = useRoute();
const usertore = useUserStore().user
const toolStore = useToolState()
@@ -127,6 +129,19 @@ const changeChapter = async (data)=>{
getResource()
}
+ // 文件资源打开web AIX 布置作业
+const openFileLink = (item) =>{
+ // key 对应的 linkConfig.js 外部链接配置
+ let key = 'filehomework'
+ let configObj = outLink()[key]
+ ipcMsgSend2('openWindow', {
+ key,
+ fullPath: configObj.fullPath + `&fileShowName=${item.fileShowName}&fileFullPath=${item.fileFullPath}`,
+ cookieData: { ...configObj.data }
+ })
+}
+
+
// 获取资源数据
const getResource = () => {
let querySearch = toRaw(toolStore.curSubjectNode).querySearch
@@ -233,7 +248,7 @@ onMounted(() => {
getHomework()
setTimeout(()=>{
getResource()
- },5000)
+ },1000)
})