From 5eb6903bde0b9be730b35fc116eabf808f8f64e0 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 18 三月 2025 11:33:58 +0800 Subject: [PATCH] fix:简化项目模板&剔除无用部分 --- src/main.js | 31 ++++--------------------------- 1 files changed, 4 insertions(+), 27 deletions(-) diff --git a/src/main.js b/src/main.js index 9eb4825..3ee2f7a 100644 --- a/src/main.js +++ b/src/main.js @@ -23,7 +23,6 @@ // 注册指令 import plugins from './plugins' // plugins -// import { download } from '@/utils/request' // svg图标 import 'virtual:svg-icons-register' @@ -37,25 +36,10 @@ // 分页组件 import Pagination from '@/components/Pagination' -// 自定义表格工具组件 -import RightToolbar from '@/components/RightToolbar' -// 富文本组件 -import Editor from "@/components/Editor" -// 文件上传组件 -import FileUpload from "@/components/FileUpload" -// 图片上传组件 -import ImageUpload from "@/components/ImageUpload" -// 图片预览组件 -import ImagePreview from "@/components/ImagePreview" // 自定义树选择组件 import TreeSelect from '@/components/TreeSelect' -// 字典标签组件 -import DictTag from '@/components/DictTag' -//Echarts图表 -import EchartsArea from '@/components/EchartsArea' - -//自定义文件上传 -import UploadFile from "@/components/UploadFile" +// 自定义表格工具组件 +import RightToolbar from '@/components/RightToolbar' //多张图片上传 import UploadIcons from "@/components/UploadIcons" @@ -75,20 +59,13 @@ app.config.globalProperties.handleTree = handleTree app.config.globalProperties.addDateRange = addDateRange app.config.globalProperties.selectDictLabel = selectDictLabel -app.config.globalProperties.selectDictLabels = selectDictLabels +app.config.globalProperties.selectDictLabels = selectDictLabels // 全局组件挂载 -app.component('EchartsArea', EchartsArea) -app.component('DictTag', DictTag) app.component('Pagination', Pagination) app.component('TreeSelect', TreeSelect) -app.component('FileUpload', FileUpload) -app.component('UploadFile', UploadFile) -app.component('UploadIcons', UploadIcons) -app.component('ImageUpload', ImageUpload) -app.component('ImagePreview', ImagePreview) app.component('RightToolbar', RightToolbar) -app.component('Editor', Editor) +app.component('UploadIcons', UploadIcons) import { addActiveRoute } from '@/utils/index' -- Gitblit v1.9.3