update:更新socket返回参数
This commit is contained in:
@@ -145,7 +145,7 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onBeforeUnmount, onMounted, reactive, ref } from 'vue';
|
||||
import { onActivated, onBeforeUnmount, onDeactivated, onMounted, reactive, ref } from 'vue';
|
||||
import FileIcon from '@/components/common/fileIcon/index.vue';
|
||||
import { queryHpcApplicationApi } from '@/api/system/application';
|
||||
import { FileUtil, submitUploadBigFile } from '@/utils/file';
|
||||
@@ -345,6 +345,14 @@ onMounted(() => {
|
||||
getHpcListFun();
|
||||
});
|
||||
|
||||
onActivated(() => {
|
||||
emitter.on('UPLOAD_FINISHED', uploadFinishedFun);
|
||||
});
|
||||
|
||||
onDeactivated(() => {
|
||||
emitter.off('UPLOAD_FINISHED', uploadFinishedFun);
|
||||
});
|
||||
|
||||
onBeforeUnmount(() => {
|
||||
emitter.off('UPLOAD_FINISHED', uploadFinishedFun);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user