🔨 Refactor: refactored the import section of the code

This commit is contained in:
萌萌哒赫萝
2023-08-07 01:36:27 -07:00
parent 33b36d63c6
commit cb131d5250
64 changed files with 778 additions and 195 deletions
+21 -1
View File
@@ -85,20 +85,40 @@
</div>
</template>
<script lang="ts" setup>
// 枚举类型声明
import { IRPCActionType } from '~/universal/types/enum'
// Vue 相关
import { ref, onBeforeUnmount, onBeforeMount } from 'vue'
// 国际化函数
import { T as $T } from '@/i18n/index'
// 数据发送工具函数
import { sendToMain, triggerRPC } from '@/utils/dataSender'
// Vue Router 相关
import { useRoute, useRouter } from 'vue-router'
// 组件
import ConfigForm from '@/components/ConfigForm.vue'
// import mixin from '@/utils/ConfirmButtonMixin'
// Electron 相关
import {
ipcRenderer,
IpcRendererEvent
} from 'electron'
// 事件常量
import { OPEN_URL } from '~/universal/events/constants'
// Element Plus 图标
import { Link } from '@element-plus/icons-vue'
// 时间处理库
import dayjs from 'dayjs'
// Element Plus 下拉菜单组件
import { ElDropdown } from 'element-plus'
const type = ref('')