Procházet zdrojové kódy

feat: 代码瘦身

wanggaokun před 1 rokem
rodič
revize
d6605244e5
80 změnil soubory, kde provedl 3 přidání a 110 odebrání
  1. 0 2
      src/components/CustomDialog/index.vue
  2. 0 2
      src/components/DictTag/index.vue
  3. 0 1
      src/components/ECharts/index.vue
  4. 0 1
      src/components/ErrorMessage/404.vue
  5. 0 1
      src/components/ErrorMessage/500.vue
  6. 0 1
      src/components/Grid/components/GridItem.vue
  7. 0 1
      src/components/Highlight/index.vue
  8. 0 1
      src/components/HighlightDialog/index.vue
  9. 0 2
      src/components/ImagePreview/index.vue
  10. 0 1
      src/components/ImportExcel/index.vue
  11. 0 1
      src/components/InnerLink/index.vue
  12. 0 1
      src/components/ProForm/components/Item.vue
  13. 0 1
      src/components/ProForm/index.vue
  14. 0 1
      src/components/ProTable/components/ColSetting.vue
  15. 0 1
      src/components/ProTable/components/TableColumn.vue
  16. 0 1
      src/components/ProTable/index.vue
  17. 0 1
      src/components/ProTable/interface/index.ts
  18. 0 1
      src/components/SearchForm/components/SearchFormItem.vue
  19. 0 1
      src/components/SearchForm/index.vue
  20. 0 2
      src/components/SelectFilter/index.vue
  21. 0 1
      src/components/SelectIcon/index.vue
  22. 1 1
      src/components/SvgIcon/index.vue
  23. 0 1
      src/components/TableDialog/index.vue
  24. 0 1
      src/components/TreeFilter/index.vue
  25. 0 1
      src/components/Upload/File.vue
  26. 0 1
      src/components/Upload/FileS3.vue
  27. 0 1
      src/components/Upload/Img.vue
  28. 0 1
      src/components/Upload/Imgs.vue
  29. 0 1
      src/components/Upload/ImgsS3.vue
  30. 0 1
      src/components/UploadDialog/index.vue
  31. 0 1
      src/components/WangEditor/index.vue
  32. 0 2
      src/components/iFrame/index.vue
  33. 0 2
      src/hooks/useAuthButtons.ts
  34. 0 2
      src/hooks/useOnline.ts
  35. 0 2
      src/hooks/useSelection.ts
  36. 0 2
      src/hooks/useTime.ts
  37. 0 2
      src/layouts/LayoutClassic/index.vue
  38. 0 2
      src/layouts/LayoutColumns/index.vue
  39. 0 2
      src/layouts/LayoutTransverse/index.vue
  40. 0 2
      src/layouts/LayoutVertical/index.vue
  41. 0 1
      src/layouts/components/Header/ToolBarRight.vue
  42. 0 1
      src/layouts/components/Header/components/AssemblySize.vue
  43. 0 1
      src/layouts/components/Header/components/Avatar.vue
  44. 0 2
      src/layouts/components/Header/components/Breadcrumb.vue
  45. 0 1
      src/layouts/components/Header/components/Fullscreen.vue
  46. 0 2
      src/layouts/components/Header/components/InfoDialog.vue
  47. 0 1
      src/layouts/components/Header/components/Language.vue
  48. 0 1
      src/layouts/components/Header/components/Message.vue
  49. 0 2
      src/layouts/components/Header/components/PasswordDialog.vue
  50. 0 2
      src/layouts/components/Header/components/SearchMenu.vue
  51. 0 1
      src/layouts/components/Main/index.vue
  52. 0 2
      src/layouts/components/Menu/SubMenu.vue
  53. 0 2
      src/layouts/components/Tabs/components/MoreButton.vue
  54. 0 2
      src/layouts/components/Tabs/index.vue
  55. 0 1
      src/layouts/components/ThemeDrawer/index.vue
  56. 0 1
      src/layouts/index.vue
  57. 0 1
      src/layouts/indexAsync.vue
  58. 1 0
      src/typings/auto-imports.d.ts
  59. 0 1
      src/utils/common.ts
  60. 0 2
      src/views/login/components/LoginForm.vue
  61. 0 1
      src/views/monitor/logininfor/index.vue
  62. 1 2
      src/views/monitor/operlog/index.vue
  63. 0 2
      src/views/redirect/index.vue
  64. 0 1
      src/views/system/dept/index.vue
  65. 0 2
      src/views/system/dict/data.vue
  66. 0 2
      src/views/system/dict/index.vue
  67. 0 1
      src/views/system/menu/index.vue
  68. 0 1
      src/views/system/oss/config.vue
  69. 0 2
      src/views/system/oss/index.vue
  70. 0 1
      src/views/system/post/index.vue
  71. 0 2
      src/views/system/role/authUser.vue
  72. 0 2
      src/views/system/role/index.vue
  73. 0 1
      src/views/system/user/index.vue
  74. 0 2
      src/views/system/user/profile/index.vue
  75. 0 1
      src/views/system/user/profile/userAvatar.vue
  76. 0 1
      src/views/tool/gen/components/basicInfoForm.vue
  77. 0 1
      src/views/tool/gen/components/columnInfo.vue
  78. 0 1
      src/views/tool/gen/components/genInfoForm.vue
  79. 0 2
      src/views/tool/gen/editGenTable.vue
  80. 0 2
      src/views/tool/gen/index.vue

+ 0 - 2
src/components/CustomDialog/index.vue

@@ -18,8 +18,6 @@
 </template>
 
 <script setup lang="ts" name="FormDialog">
-import { ref } from 'vue'
-
 export interface FormParameterProps {
   title: string // 标题
   width?: number // 弹框宽度

+ 0 - 2
src/components/DictTag/index.vue

@@ -20,8 +20,6 @@
 </template>
 
 <script setup lang="ts">
-import { computed } from 'vue'
-
 const props = defineProps({
   // 数据
   options: {

+ 0 - 1
src/components/ECharts/index.vue

@@ -3,7 +3,6 @@
 </template>
 
 <script setup lang="ts" name="ECharts">
-import { ref, onMounted, onBeforeUnmount, watch, computed, markRaw, nextTick } from 'vue'
 import { EChartsType, ECElementEvent } from 'echarts/core'
 import echarts, { ECOption } from './config'
 import { useDebounceFn } from '@vueuse/core'

+ 0 - 1
src/components/ErrorMessage/404.vue

@@ -10,7 +10,6 @@
 </template>
 
 <script setup lang="ts" name="404">
-import { useRouter } from 'vue-router'
 const router = useRouter()
 </script>
 

+ 0 - 1
src/components/ErrorMessage/500.vue

@@ -10,7 +10,6 @@
 </template>
 
 <script setup lang="ts" name="500">
-import { useRouter } from 'vue-router'
 const router = useRouter()
 </script>
 

+ 0 - 1
src/components/Grid/components/GridItem.vue

@@ -4,7 +4,6 @@
   </div>
 </template>
 <script setup lang="ts" name="GridItem">
-import { computed, inject, Ref, ref, useAttrs, watch } from 'vue'
 import { BreakPoint, Responsive } from '../interface/index'
 
 type Props = {

+ 0 - 1
src/components/Highlight/index.vue

@@ -2,7 +2,6 @@
   <pre :class="'hx-scroll ' + lineNumbers"><code :class="'language-'+ type" v-html="Prism.highlight(code, Prism.languages[type], type)"></code></pre>
 </template>
 <script setup lang="ts">
-import { onMounted, computed } from 'vue'
 import Prism from 'prismjs'
 const props = defineProps({
   code: {

+ 0 - 1
src/components/HighlightDialog/index.vue

@@ -18,7 +18,6 @@
 </template>
 
 <script setup lang="ts" name="FormDialog">
-import { ref, watch, nextTick } from 'vue'
 import PreviewCode from '@/components/Highlight/index.vue'
 
 export interface HighlightProps {

+ 0 - 2
src/components/ImagePreview/index.vue

@@ -9,8 +9,6 @@
 </template>
 
 <script setup lang="ts" name="ImgPreview">
-import { computed } from 'vue'
-
 interface ImgPreviewProps {
   src: string
   height?: string | number // 组件高度 ==> 非必传(默认为 150px)

+ 0 - 1
src/components/ImportExcel/index.vue

@@ -50,7 +50,6 @@
 </template>
 
 <script setup lang="ts" name="ImportExcel">
-import { ref } from 'vue'
 import { useDownload } from '@/hooks/useDownload'
 import { ElNotification, UploadRequestOptions, UploadRawFile, UploadInstance } from 'element-plus'
 

+ 0 - 1
src/components/InnerLink/index.vue

@@ -5,7 +5,6 @@
 </template>
 
 <script setup lang="ts" name="Loading">
-import { ref } from 'vue'
 interface LinkProps {
   src: string
   iframeId: string

+ 0 - 1
src/components/ProForm/components/Item.vue

@@ -42,7 +42,6 @@
 </template>
 
 <script setup lang="ts" name="Item">
-import { computed, inject, ref } from 'vue'
 import { handleProp } from '@/utils'
 interface FormItem {
   item: ProForm.ItemsOptions

+ 0 - 1
src/components/ProForm/index.vue

@@ -56,7 +56,6 @@
 </template>
 
 <script setup lang="ts" name="ProForm">
-import { ref, computed, ComputedRef, watch, unref, provide } from 'vue'
 import { ElMessage, type FormInstance } from 'element-plus'
 import Item from '@/components/ProForm/components/Item.vue'
 import SelectIcon from '@/components/SelectIcon/index.vue'

+ 0 - 1
src/components/ProTable/components/ColSetting.vue

@@ -22,7 +22,6 @@
 </template>
 
 <script setup lang="ts" name="ColSetting">
-import { ref } from 'vue'
 import { ColumnProps } from '@/components/ProTable/interface'
 
 defineProps<{ colSetting: ColumnProps[] }>()

+ 0 - 1
src/components/ProTable/components/TableColumn.vue

@@ -3,7 +3,6 @@
 </template>
 
 <script setup lang="tsx" name="TableColumn">
-import { inject, ref, useSlots } from 'vue'
 import { ColumnProps, RenderScope, HeaderRenderScope } from '@/components/ProTable/interface'
 import { filterEnum, formatValue, handleProp, handleRowAccordingToProp } from '@/utils'
 

+ 0 - 1
src/components/ProTable/index.vue

@@ -76,7 +76,6 @@
 </template>
 
 <script setup lang="ts" name="ProTable">
-import { ref, watch, provide, onMounted, unref, computed, reactive } from 'vue'
 import { ElTable } from 'element-plus'
 import { useTable } from '@/hooks/useTable'
 import { useSelection } from '@/hooks/useSelection'

+ 0 - 1
src/components/ProTable/interface/index.ts

@@ -1,4 +1,3 @@
-import { VNode, ComponentPublicInstance, Ref } from 'vue'
 import { BreakPoint, Responsive } from '@/components/Grid/interface'
 import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults'
 import { ProTableProps } from '@/components/ProTable/index.vue'

+ 0 - 1
src/components/SearchForm/components/SearchFormItem.vue

@@ -23,7 +23,6 @@
 </template>
 
 <script setup lang="ts" name="SearchFormItem">
-import { computed, inject, ref } from 'vue'
 import { handleProp } from '@/utils'
 import { ColumnProps } from '@/components/ProTable/interface'
 

+ 0 - 1
src/components/SearchForm/index.vue

@@ -33,7 +33,6 @@
   </div>
 </template>
 <script setup lang="ts" name="SearchForm">
-import { computed, ref } from 'vue'
 import { ColumnProps } from '@/components/ProTable/interface'
 import { BreakPoint } from '@/components/Grid/interface'
 import { ArrowDown, ArrowUp } from '@element-plus/icons-vue'

+ 0 - 2
src/components/SelectFilter/index.vue

@@ -29,8 +29,6 @@
 </template>
 
 <script setup lang="ts" name="selectFilter">
-import { ref, watch } from 'vue'
-
 interface OptionsProps {
   value: string | number
   label: string

+ 0 - 1
src/components/SelectIcon/index.vue

@@ -29,7 +29,6 @@
 </template>
 
 <script setup lang="ts" name="SelectIcon">
-import { ref, computed } from 'vue'
 import * as Icons from '@element-plus/icons-vue'
 
 interface SelectIconProps {

+ 1 - 1
src/components/SvgIcon/index.vue

@@ -8,8 +8,8 @@
 </template>
 
 <script setup lang="ts" name="SvgIcon">
-import { computed, CSSProperties } from 'vue'
 import * as Icons from '@element-plus/icons-vue'
+import { CSSProperties } from 'vue'
 const elIcons: { [key: string]: any } = Icons
 interface SvgProps {
   name: string // 图标的名称 ==> 必传

+ 0 - 1
src/components/TableDialog/index.vue

@@ -28,7 +28,6 @@
 </template>
 
 <script setup lang="ts" name="FormDialog">
-import { ref } from 'vue'
 import ProTable from '@/components/ProTable/index.vue'
 import { ElMessage } from 'element-plus'
 import { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'

+ 0 - 1
src/components/TreeFilter/index.vue

@@ -35,7 +35,6 @@
 </template>
 
 <script setup lang="ts" name="TreeFilter">
-import { ref, watch, onBeforeMount, nextTick } from 'vue'
 import { ElTree } from 'element-plus'
 
 // 接收父组件参数并设置默认值

+ 0 - 1
src/components/Upload/File.vue

@@ -46,7 +46,6 @@
 </template>
 
 <script setup lang="ts" name="UploadImgs">
-import { ref, computed, inject, watch } from 'vue'
 import type { UploadProps, UploadFile } from 'element-plus'
 import { ElMessage, formContextKey, formItemContextKey, UploadInstance } from 'element-plus'
 import { showFullScreenLoading, tryHideFullScreenLoading } from '@/components/Loading/fullScreen'

+ 0 - 1
src/components/Upload/FileS3.vue

@@ -46,7 +46,6 @@
 </template>
 
 <script setup lang="ts" name="UploadImgs">
-import { ref, computed, inject, watch } from 'vue'
 import type { UploadProps, UploadFile } from 'element-plus'
 import { ElMessage, formContextKey, formItemContextKey, UploadInstance } from 'element-plus'
 import { showFullScreenLoading, tryHideFullScreenLoading } from '@/components/Loading/fullScreen'

+ 0 - 1
src/components/Upload/Img.vue

@@ -48,7 +48,6 @@
 </template>
 
 <script setup lang="ts" name="UploadImg">
-import { ref, computed, inject } from 'vue'
 import { generateUUID } from '@/utils'
 import { uploadImg } from '@/api/modules/upload'
 import { ElNotification, formContextKey, formItemContextKey } from 'element-plus'

+ 0 - 1
src/components/Upload/Imgs.vue

@@ -54,7 +54,6 @@
 </template>
 
 <script setup lang="ts" name="UploadImgs">
-import { ref, computed, inject, watch } from 'vue'
 import { Plus } from '@element-plus/icons-vue'
 import type { UploadProps, UploadFile } from 'element-plus'
 import { ElMessage, formContextKey, formItemContextKey } from 'element-plus'

+ 0 - 1
src/components/Upload/ImgsS3.vue

@@ -54,7 +54,6 @@
 </template>
 
 <script setup lang="ts" name="UploadImgs">
-import { ref, computed, inject, watch } from 'vue'
 import { Plus } from '@element-plus/icons-vue'
 import type { UploadProps, UploadFile } from 'element-plus'
 import { ElMessage, formContextKey, formItemContextKey } from 'element-plus'

+ 0 - 1
src/components/UploadDialog/index.vue

@@ -19,7 +19,6 @@
 </template>
 
 <script setup lang="ts" name="ImageUploadDialog">
-import { ref, computed, ComputedRef } from 'vue'
 import ProFrom from '@/components/ProForm/index.vue'
 export interface DialogProps {
   title: string // 标题

+ 0 - 1
src/components/WangEditor/index.vue

@@ -14,7 +14,6 @@
 </template>
 
 <script setup lang="ts" name="WangEditor">
-import { nextTick, computed, inject, shallowRef, onBeforeUnmount } from 'vue'
 import { IToolbarConfig, IEditorConfig } from '@wangeditor/editor'
 import { Editor, Toolbar } from '@wangeditor/editor-for-vue'
 import { uploadImg, uploadVideo } from '@/api/modules/upload'

+ 0 - 2
src/components/iFrame/index.vue

@@ -5,8 +5,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref, computed, onMounted } from 'vue'
-
 interface IFrameProps {
   src: string
 }

+ 0 - 2
src/hooks/useAuthButtons.ts

@@ -1,5 +1,3 @@
-import { computed } from 'vue'
-import { useRoute } from 'vue-router'
 import { useAuthStore } from '@/stores/modules/auth'
 
 /**

+ 0 - 2
src/hooks/useOnline.ts

@@ -1,5 +1,3 @@
-import { ref, onMounted, onUnmounted } from 'vue'
-
 /**
  * @description 网络是否可用
  * */

+ 0 - 2
src/hooks/useSelection.ts

@@ -1,5 +1,3 @@
-import { ref, computed } from 'vue'
-
 /**
  * @description 表格多选数据操作
  * @param {String} rowKey 当表格可以多选时,所指定的 id

+ 0 - 2
src/hooks/useTime.ts

@@ -1,5 +1,3 @@
-import { ref } from 'vue'
-
 /**
  * @description 获取本地时间
  */

+ 0 - 2
src/layouts/LayoutClassic/index.vue

@@ -31,8 +31,6 @@
 </template>
 
 <script setup lang="ts" name="layoutClassic">
-import { computed } from 'vue'
-import { useRoute } from 'vue-router'
 import { useAuthStore } from '@/stores/modules/auth'
 import { useGlobalStore } from '@/stores/modules/global'
 import Main from '@/layouts/components/Main/index.vue'

+ 0 - 2
src/layouts/LayoutColumns/index.vue

@@ -43,8 +43,6 @@
 </template>
 
 <script setup lang="ts" name="layoutColumns">
-import { ref, computed, watch } from 'vue'
-import { useRoute, useRouter } from 'vue-router'
 import { useAuthStore } from '@/stores/modules/auth'
 import { useGlobalStore } from '@/stores/modules/global'
 import Main from '@/layouts/components/Main/index.vue'

+ 0 - 2
src/layouts/LayoutTransverse/index.vue

@@ -35,9 +35,7 @@
 </template>
 
 <script setup lang="ts" name="layoutTransverse">
-import { computed } from 'vue'
 import { useAuthStore } from '@/stores/modules/auth'
-import { useRoute, useRouter } from 'vue-router'
 import Main from '@/layouts/components/Main/index.vue'
 import ToolBarRight from '@/layouts/components/Header/ToolBarRight.vue'
 import SubMenu from '@/layouts/components/Menu/SubMenu.vue'

+ 0 - 2
src/layouts/LayoutVertical/index.vue

@@ -25,8 +25,6 @@
 </template>
 
 <script setup lang="ts" name="layoutVertical">
-import { computed } from 'vue'
-import { useRoute } from 'vue-router'
 import { useAuthStore } from '@/stores/modules/auth'
 import { useGlobalStore } from '@/stores/modules/global'
 import Main from '@/layouts/components/Main/index.vue'

+ 0 - 1
src/layouts/components/Header/ToolBarRight.vue

@@ -15,7 +15,6 @@
 </template>
 
 <script setup lang="ts">
-// import { computed } from 'vue'
 // import { useUserStore } from '@/stores/modules/user'
 import AssemblySize from './components/AssemblySize.vue'
 // import Language from './components/Language.vue'

+ 0 - 1
src/layouts/components/Header/components/AssemblySize.vue

@@ -12,7 +12,6 @@
 </template>
 
 <script setup lang="ts">
-import { computed } from 'vue'
 import { useGlobalStore } from '@/stores/modules/global'
 import { AssemblySizeType } from '@/stores/interface'
 

+ 0 - 1
src/layouts/components/Header/components/Avatar.vue

@@ -23,7 +23,6 @@
 
 <script setup lang="ts">
 import { LOGIN_URL } from '@/config'
-import { useRouter } from 'vue-router'
 import { useUserStore } from '@/stores/modules/user'
 import { ElMessageBox, ElMessage } from 'element-plus'
 import InfoDialog from './InfoDialog.vue'

+ 0 - 2
src/layouts/components/Header/components/Breadcrumb.vue

@@ -16,9 +16,7 @@
 </template>
 
 <script setup lang="ts">
-import { computed } from 'vue'
 import { HOME_URL } from '@/config'
-import { useRoute, useRouter } from 'vue-router'
 import { ArrowRight } from '@element-plus/icons-vue'
 import { useAuthStore } from '@/stores/modules/auth'
 import { useGlobalStore } from '@/stores/modules/global'

+ 0 - 1
src/layouts/components/Header/components/Fullscreen.vue

@@ -5,7 +5,6 @@
 </template>
 
 <script setup lang="ts">
-import { onMounted, ref } from 'vue'
 import { ElMessage } from 'element-plus'
 import screenfull from 'screenfull'
 

+ 0 - 2
src/layouts/components/Header/components/InfoDialog.vue

@@ -11,8 +11,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref } from 'vue'
-
 const dialogVisible = ref(false)
 const openDialog = () => {
   dialogVisible.value = true

+ 0 - 1
src/layouts/components/Header/components/Language.vue

@@ -13,7 +13,6 @@
 
 <script setup lang="ts">
 import { useI18n } from 'vue-i18n'
-import { computed } from 'vue'
 import { useGlobalStore } from '@/stores/modules/global'
 import { LanguageType } from '@/stores/interface'
 

+ 0 - 1
src/layouts/components/Header/components/Message.vue

@@ -64,7 +64,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref } from 'vue'
 const activeName = ref('first')
 </script>
 

+ 0 - 2
src/layouts/components/Header/components/PasswordDialog.vue

@@ -11,8 +11,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref } from 'vue'
-
 const dialogVisible = ref(false)
 const openDialog = () => {
   dialogVisible.value = true

+ 0 - 2
src/layouts/components/Header/components/SearchMenu.vue

@@ -28,9 +28,7 @@
 </template>
 
 <script setup lang="ts">
-import { ref, computed, nextTick } from 'vue'
 import { Search } from '@element-plus/icons-vue'
-import { useRouter } from 'vue-router'
 import { useAuthStore } from '@/stores/modules/auth'
 const router = useRouter()
 const authStore = useAuthStore()

+ 0 - 1
src/layouts/components/Main/index.vue

@@ -16,7 +16,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref, onBeforeUnmount, provide, watch } from 'vue'
 import { storeToRefs } from 'pinia'
 import { useDebounceFn } from '@vueuse/core'
 import { useGlobalStore } from '@/stores/modules/global'

+ 0 - 2
src/layouts/components/Menu/SubMenu.vue

@@ -21,8 +21,6 @@
 </template>
 
 <script setup lang="ts">
-import { useRouter } from 'vue-router'
-
 defineProps<{ menuList: Menu.MenuOptions[] }>()
 
 const router = useRouter()

+ 0 - 2
src/layouts/components/Tabs/components/MoreButton.vue

@@ -32,12 +32,10 @@
 </template>
 
 <script setup lang="ts">
-import { inject, nextTick } from 'vue'
 import { HOME_URL } from '@/config'
 import { useTabsStore } from '@/stores/modules/tabs'
 import { useGlobalStore } from '@/stores/modules/global'
 import { useKeepAliveStore } from '@/stores/modules/keepAlive'
-import { useRoute, useRouter } from 'vue-router'
 
 const route = useRoute()
 const router = useRouter()

+ 0 - 2
src/layouts/components/Tabs/index.vue

@@ -18,8 +18,6 @@
 
 <script setup lang="ts">
 import Sortable from 'sortablejs'
-import { ref, computed, watch, onMounted } from 'vue'
-import { useRoute, useRouter } from 'vue-router'
 import { useGlobalStore } from '@/stores/modules/global'
 import { useTabsStore } from '@/stores/modules/tabs'
 import { useAuthStore } from '@/stores/modules/auth'

+ 0 - 1
src/layouts/components/ThemeDrawer/index.vue

@@ -128,7 +128,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref } from 'vue'
 import { storeToRefs } from 'pinia'
 import { useTheme } from '@/hooks/useTheme'
 import { useGlobalStore } from '@/stores/modules/global'

+ 0 - 1
src/layouts/index.vue

@@ -5,7 +5,6 @@
 </template>
 
 <script setup lang="ts" name="layout">
-import { computed, type Component } from 'vue'
 import { LayoutType } from '@/stores/interface'
 import { useGlobalStore } from '@/stores/modules/global'
 import ThemeDrawer from './components/ThemeDrawer/index.vue'

+ 0 - 1
src/layouts/indexAsync.vue

@@ -12,7 +12,6 @@
 </template>
 
 <script setup lang="ts" name="layoutAsync">
-import { computed, defineAsyncComponent, type Component } from 'vue'
 import { LayoutType } from '@/stores/interface'
 import { useGlobalStore } from '@/stores/modules/global'
 import Loading from '@/components/Loading/index.vue'

+ 1 - 0
src/typings/auto-imports.d.ts

@@ -6,6 +6,7 @@
 export {}
 declare global {
   const EffectScope: (typeof import('vue'))['EffectScope']
+  const ElMessage: (typeof import('element-plus/es'))['ElMessage']
   const acceptHMRUpdate: (typeof import('pinia'))['acceptHMRUpdate']
   const computed: (typeof import('vue'))['computed']
   const createApp: (typeof import('vue'))['createApp']

+ 0 - 1
src/utils/common.ts

@@ -1,5 +1,4 @@
 import lodash from 'lodash'
-import { unref } from 'vue'
 
 export const addDateRange = (params: any, dateRange: any[], propName?: string) => {
   const search = params

+ 0 - 2
src/views/login/components/LoginForm.vue

@@ -31,8 +31,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref, reactive, onMounted } from 'vue'
-import { useRouter } from 'vue-router'
 import { HOME_URL } from '@/config'
 import { getTimeState } from '@/utils'
 import { Login } from '@/api/interface'

+ 0 - 1
src/views/monitor/logininfor/index.vue

@@ -6,7 +6,6 @@
 </template>
 
 <script setup lang="tsx" name="Logininfor">
-import { ref, reactive } from 'vue'
 import ProTable from '@/components/ProTable/index.vue'
 import ImportExcel from '@/components/ImportExcel/index.vue'
 import { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'

+ 1 - 2
src/views/monitor/operlog/index.vue

@@ -4,8 +4,7 @@
   </div>
 </template>
 
-<script setup lang="tsx" name="Operlog">
-import { ref, reactive } from 'vue'
+<script setup lang="tsx" name="Operog">
 import ProTable from '@/components/ProTable/index.vue'
 import { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'
 import { listOperlogApi } from '@/api/modules/monitor/operlog'

+ 0 - 2
src/views/redirect/index.vue

@@ -3,8 +3,6 @@
 </template>
 
 <script setup lang="ts">
-import { useRoute, useRouter } from 'vue-router'
-
 const route = useRoute()
 const router = useRouter()
 const { params, query } = route

+ 0 - 1
src/views/system/dept/index.vue

@@ -29,7 +29,6 @@
 </template>
 
 <script setup lang="tsx" name="Dept">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import ProTable from '@/components/ProTable/index.vue'
 import ImportExcel from '@/components/ImportExcel/index.vue'

+ 0 - 2
src/views/system/dict/data.vue

@@ -33,7 +33,6 @@
 </template>
 
 <script setup lang="tsx" name="Data">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import { useDownload } from '@/hooks/useDownload'
 import { ElMessageBox } from 'element-plus'
@@ -44,7 +43,6 @@ import { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'
 import { listDataApi, delDataApi, addDataApi, updateDataApi, getDataApi, exportApi } from '@/api/modules/system/dictData'
 import { getDictApi } from '@/api/modules/system/dict'
 
-import { useRoute } from 'vue-router'
 const route = useRoute()
 // ProTable 实例
 const proTable = ref<ProTableInstance>()

+ 0 - 2
src/views/system/dict/index.vue

@@ -30,10 +30,8 @@
 </template>
 
 <script setup lang="tsx" name="Dict">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import { useDownload } from '@/hooks/useDownload'
-import { useRouter } from 'vue-router'
 import { ElMessageBox } from 'element-plus'
 import ProTable from '@/components/ProTable/index.vue'
 import ImportExcel from '@/components/ImportExcel/index.vue'

+ 0 - 1
src/views/system/menu/index.vue

@@ -32,7 +32,6 @@
 </template>
 
 <script setup lang="tsx" name="MenuManage">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import ProTable from '@/components/ProTable/index.vue'
 import FormDialog from '@/components/FormDialog/index.vue'

+ 0 - 1
src/views/system/oss/config.vue

@@ -32,7 +32,6 @@
 </template>
 
 <script setup lang="tsx" name="OssConfig">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import ProTable from '@/components/ProTable/index.vue'
 import ImportExcel from '@/components/ImportExcel/index.vue'

+ 0 - 2
src/views/system/oss/index.vue

@@ -53,11 +53,9 @@
 </template>
 
 <script setup lang="tsx" name="Oss">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import useDownload from '@/hooks/useDownload'
 import UploadDialog from '@/components/UploadDialog/index.vue'
-import { useRouter } from 'vue-router'
 import ProTable from '@/components/ProTable/index.vue'
 import ImagePreview from '@/components/ImagePreview/index.vue'
 import { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'

+ 0 - 1
src/views/system/post/index.vue

@@ -32,7 +32,6 @@
 </template>
 
 <script setup lang="tsx" name="PostManage">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import { useDownload } from '@/hooks/useDownload'
 import { ElMessageBox } from 'element-plus'

+ 0 - 2
src/views/system/role/authUser.vue

@@ -26,7 +26,6 @@
 </template>
 
 <script setup lang="tsx" name="Role">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import ProTable from '@/components/ProTable/index.vue'
 import TableDialog from '@/components/TableDialog/index.vue'
@@ -38,7 +37,6 @@ import {
   authUserCancelApi,
   authUserCancelAllApi
 } from '@/api/modules/system/role'
-import { useRoute } from 'vue-router'
 import { useTabsStore } from '@/stores/modules/tabs'
 import { getDictsApi } from '@/api/modules/system/dictData'
 const tabStore = useTabsStore()

+ 0 - 2
src/views/system/role/index.vue

@@ -103,7 +103,6 @@
 </template>
 
 <script setup lang="tsx" name="RoleManage">
-import { ref, reactive, nextTick } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import { useDownload } from '@/hooks/useDownload'
 import { ElMessageBox, ElMessage } from 'element-plus'
@@ -127,7 +126,6 @@ import {
 } from '@/api/modules/system/role'
 import { treeSelectApi } from '@/api/modules/system/menu'
 import { getDictsApi } from '@/api/modules/system/dictData'
-import { useRouter } from 'vue-router'
 
 const router = useRouter()
 // 菜单列表

+ 0 - 1
src/views/system/user/index.vue

@@ -42,7 +42,6 @@
 </template>
 
 <script setup lang="tsx" name="UserManage">
-import { onMounted, reactive, ref } from 'vue'
 import { User } from '@/api/interface'
 import { useDownload } from '@/hooks/useDownload'
 import { useHandleData } from '@/hooks/useHandleData'

+ 0 - 2
src/views/system/user/profile/index.vue

@@ -76,13 +76,11 @@
 
 <script setup lang="ts" name="uploadFile">
 import userAvatar from './userAvatar.vue'
-import { ref, onMounted } from 'vue'
 import { ElMessage } from 'element-plus'
 import { getUserProfileApi, updateUserPwdApi, updateUserProfileApi } from '@/api/modules/system/user'
 import { UserVO } from '@/api/interface/system/user'
 import ProFrom from '@/components/ProForm/index.vue'
 import { getDictsApi } from '@/api/modules/system/dictData'
-import { useRoute } from 'vue-router'
 import { useTabsStore } from '@/stores/modules/tabs'
 const tabStore = useTabsStore()
 const route = useRoute()

+ 0 - 1
src/views/system/user/profile/userAvatar.vue

@@ -56,7 +56,6 @@
 </template>
 
 <script setup lang="ts">
-import { ref, reactive } from 'vue'
 import 'vue-cropper/dist/index.css'
 import { VueCropper } from 'vue-cropper'
 import { uploadAvatarApi } from '@/api/modules/system/user'

+ 0 - 1
src/views/tool/gen/components/basicInfoForm.vue

@@ -2,7 +2,6 @@
   <ProForm ref="formRef" :items-options="items" :model="model" :form-options="_formOptions"> </ProForm>
 </template>
 <script lang="ts" name="GenBasicInfo" setup>
-import { defineProps, ref } from 'vue'
 import ProForm from '@/components/ProForm/index.vue'
 const formRef = ref<InstanceType<typeof ProForm> | null>(null)
 defineProps({

+ 0 - 1
src/views/tool/gen/components/columnInfo.vue

@@ -10,7 +10,6 @@
   />
 </template>
 <script lang="tsx" name="ColumnInfo" setup>
-import { ref, reactive, defineProps } from 'vue'
 import ProTable from '@/components/ProTable/index.vue'
 import { ProTableInstance, ColumnProps } from '@/components/ProTable/interface'
 export interface TableProps {

+ 0 - 1
src/views/tool/gen/components/genInfoForm.vue

@@ -6,7 +6,6 @@
   <ProForm ref="formRef2" :items-options="treeItemsOptions" :model="infoForm" :form-options="_formOptions"> </ProForm>
 </template>
 <script lang="ts" name="GenBasicInfo" setup>
-import { defineProps, ref, computed, watch } from 'vue'
 import ProForm from '@/components/ProForm/index.vue'
 const formRef = ref<InstanceType<typeof ProForm> | null>(null)
 const formRef2 = ref<InstanceType<typeof ProForm> | null>(null)

+ 0 - 2
src/views/tool/gen/editGenTable.vue

@@ -19,8 +19,6 @@
 </template>
 
 <script setup lang="ts" name="useProTableDetail">
-import { useRoute, useRouter } from 'vue-router'
-import { ref, onMounted } from 'vue'
 import { ElMessage } from 'element-plus'
 import BasicInfoForm from './components/basicInfoForm.vue'
 import GenInfoForm from './components/genInfoForm.vue'

+ 0 - 2
src/views/tool/gen/index.vue

@@ -62,10 +62,8 @@
 </template>
 
 <script setup lang="tsx" name="Role">
-import { ref, reactive } from 'vue'
 import { useHandleData } from '@/hooks/useHandleData'
 import { useDownload } from '@/hooks/useDownload'
-import { useRouter } from 'vue-router'
 import ProTable from '@/components/ProTable/index.vue'
 import FormDialog from '@/components/CustomDialog/index.vue'
 import TableDialog from '@/components/TableDialog/index.vue'