Commit 266a132565a4ecba8f592bfdbf210dffc909143a

Authored by xingyu4j
1 parent 8333e9c3

fix

yudao-ui-admin-vue3/src/plugins/vxeTable/index.ts
... ... @@ -4,7 +4,7 @@ import XEUtils from 'xe-utils'
4 4 import './renderer'
5 5 import { i18n } from '@/plugins/vueI18n'
6 6 import zhCN from 'vxe-table/es/locale/lang/zh-CN'
7   -import enUS from 'vxe-table/lib/locale/lang/en-US'
  7 +import enUS from 'vxe-table/es/locale/lang/en-US'
8 8 import {
9 9 // 全局对象
10 10 VXETable,
... ...
yudao-ui-admin-vue3/src/views/Profile/components/UserAvatar.vue
... ... @@ -87,8 +87,8 @@
87 87 </template>
88 88 <script setup lang="ts">
89 89 import { ref, reactive, watch, Ref, UnwrapNestedRefs } from 'vue'
90   -import 'vue-cropper/dist/index.css'
91 90 import VueCropper from 'vue-cropper/lib/vue-cropper.vue'
  91 +import 'vue-cropper/dist/index.css'
92 92 import { ElRow, ElCol, ElUpload, ElMessage, ElDialog } from 'element-plus'
93 93 import { propTypes } from '@/utils/propTypes'
94 94 import { uploadAvatarApi } from '@/api/system/user/profile'
... ...
yudao-ui-admin-vue3/vite.config.ts
... ... @@ -87,11 +87,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig =&gt; {
87 87 PurgeIcons(),
88 88 viteCompression({
89 89 verbose: true, // 是否在控制台输出压缩结果
90   - disable: true, // 是否禁用
  90 + disable: false, // 是否禁用
91 91 threshold: 10240, // 体积大于 threshold 才会被压缩,单位 b
92 92 algorithm: 'gzip', // 压缩算法,可选 [ 'gzip' , 'brotliCompress' ,'deflate' , 'deflateRaw']
93 93 ext: '.gz', // 生成的压缩包后缀
94   - deleteOriginFile: false //压缩后是否删除源文件
  94 + deleteOriginFile: true //压缩后是否删除源文件
95 95 }),
96 96 createHtmlPlugin({
97 97 inject: {
... ...