This commit is contained in:
xingyu4j 2022-11-23 11:18:03 +08:00
parent 8333e9c3da
commit 266a132565
3 changed files with 4 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import XEUtils from 'xe-utils'
import './renderer'
import { i18n } from '@/plugins/vueI18n'
import zhCN from 'vxe-table/es/locale/lang/zh-CN'
import enUS from 'vxe-table/lib/locale/lang/en-US'
import enUS from 'vxe-table/es/locale/lang/en-US'
import {
// 全局对象
VXETable,

View File

@ -87,8 +87,8 @@
</template>
<script setup lang="ts">
import { ref, reactive, watch, Ref, UnwrapNestedRefs } from 'vue'
import 'vue-cropper/dist/index.css'
import VueCropper from 'vue-cropper/lib/vue-cropper.vue'
import 'vue-cropper/dist/index.css'
import { ElRow, ElCol, ElUpload, ElMessage, ElDialog } from 'element-plus'
import { propTypes } from '@/utils/propTypes'
import { uploadAvatarApi } from '@/api/system/user/profile'

View File

@ -87,11 +87,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
PurgeIcons(),
viteCompression({
verbose: true, // 是否在控制台输出压缩结果
disable: true, // 是否禁用
disable: false, // 是否禁用
threshold: 10240, // 体积大于 threshold 才会被压缩,单位 b
algorithm: 'gzip', // 压缩算法,可选 [ 'gzip' , 'brotliCompress' ,'deflate' , 'deflateRaw']
ext: '.gz', // 生成的压缩包后缀
deleteOriginFile: false //压缩后是否删除源文件
deleteOriginFile: true //压缩后是否删除源文件
}),
createHtmlPlugin({
inject: {