Skip to content

Commit

Permalink
fix(app): 修复软件运行途中删除文件会导致所有浏览器关闭的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
enncy committed Jun 4, 2022
1 parent 013e3ba commit 45a2c22
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/web/src/components/file/File.vue
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@
<script setup lang="ts">
import { LaunchScriptsOptions } from '@ocsjs/scripts';
import { message } from 'ant-design-vue';
import { computed, onUnmounted, reactive, ref, toRefs, watch } from 'vue';
import { computed, reactive, ref, toRefs, watch } from 'vue';
import { Form, scriptForms } from '.';
import { store, workspace } from '../../store';
import { debounce } from '../../utils/index';
Expand Down Expand Up @@ -326,9 +326,6 @@ function openEditor () {
childProcess.exec(`notepad "${file.value.path}"`);
}

onUnmounted(() => {
data.process.close();
});
</script>

<style scope lang="less">
Expand Down

0 comments on commit 45a2c22

Please sign in to comment.