RuoYi
2022-01-11 a7b867ff09938d40fb54a616aac42827c011e582
src/main.js
@@ -31,6 +31,8 @@
import Pagination from '@/components/Pagination'
// 自定义表格工具组件
import RightToolbar from '@/components/RightToolbar'
// 文件上传组件
import FileUpload from "@/components/FileUpload"
// 图片上传组件
import ImageUpload from "@/components/ImageUpload"
// 图片预览组件
@@ -55,6 +57,7 @@
app.component('DictTag', DictTag)
app.component('Pagination', Pagination)
app.component('TreeSelect', TreeSelect)
app.component('FileUpload', FileUpload)
app.component('ImageUpload', ImageUpload)
app.component('ImagePreview', ImagePreview)
app.component('RightToolbar', RightToolbar)
@@ -70,7 +73,8 @@
// 使用element-plus 并且设置全局的大小
app.use(ElementPlus, {
  locale: locale,
  size: Cookies.get('size') || 'medium'
  // 支持 large、default、small
  size: Cookies.get('size') || 'default'
})
app.mount('#app')