adtec-core-package 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -252,6 +252,7 @@ const handleComplete = async () => {
|
|
|
252
252
|
userId: userInfoStore().getUserInfo.id,
|
|
253
253
|
comment: task.value.comment,
|
|
254
254
|
targetKey: selectActivity.value,
|
|
255
|
+
isFirstActivity: returnData.value.find(x => x.taskKey === selectActivity.value)?.isFirstActivity
|
|
255
256
|
}
|
|
256
257
|
if (taskOperate.value?.backFunction) {
|
|
257
258
|
await taskOperate.value.backFunction(askVo)
|
package/src/hooks/useFileView.ts
CHANGED
|
@@ -1,32 +1,8 @@
|
|
|
1
|
-
import { ref, onMounted, onUnmounted, createApp } from 'vue'
|
|
2
|
-
import FileView from '../components/upload/FileViewComponents.vue'
|
|
3
1
|
import WujieVue from 'wujie-vue3'
|
|
4
2
|
const useFileView = () => {
|
|
5
|
-
// const ref_fileView = ref(null)
|
|
6
|
-
|
|
7
3
|
const fileView = (id: string) => {
|
|
8
4
|
WujieVue.bus.$emit('viewFile', id)
|
|
9
|
-
// if (ref_fileView.value) {
|
|
10
|
-
// //@ts-ignore
|
|
11
|
-
// ref_fileView.value?.viewFile(id)
|
|
12
|
-
// }
|
|
13
5
|
}
|
|
14
|
-
|
|
15
|
-
onMounted(() => {
|
|
16
|
-
// const container = document.createElement('div')
|
|
17
|
-
// document.body.appendChild(container)
|
|
18
|
-
// //@ts-ignore
|
|
19
|
-
// ref_fileView.value = createApp(FileView).mount(container)
|
|
20
|
-
// onUnmounted(() => {
|
|
21
|
-
// try {
|
|
22
|
-
// //@ts-ignore
|
|
23
|
-
// ref_fileView?.value.$destroy()
|
|
24
|
-
// } catch {
|
|
25
|
-
// /* empty */
|
|
26
|
-
// }
|
|
27
|
-
// document.body.removeChild(container)
|
|
28
|
-
// })
|
|
29
|
-
})
|
|
30
6
|
return {
|
|
31
7
|
fileView,
|
|
32
8
|
}
|