fix
parent
8333e9c3da
commit
266a132565
|
@ -4,7 +4,7 @@ import XEUtils from 'xe-utils'
|
||||||
import './renderer'
|
import './renderer'
|
||||||
import { i18n } from '@/plugins/vueI18n'
|
import { i18n } from '@/plugins/vueI18n'
|
||||||
import zhCN from 'vxe-table/es/locale/lang/zh-CN'
|
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 {
|
import {
|
||||||
// 全局对象
|
// 全局对象
|
||||||
VXETable,
|
VXETable,
|
||||||
|
|
|
@ -87,8 +87,8 @@
|
||||||
</template>
|
</template>
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref, reactive, watch, Ref, UnwrapNestedRefs } from 'vue'
|
import { ref, reactive, watch, Ref, UnwrapNestedRefs } from 'vue'
|
||||||
import 'vue-cropper/dist/index.css'
|
|
||||||
import VueCropper from 'vue-cropper/lib/vue-cropper.vue'
|
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 { ElRow, ElCol, ElUpload, ElMessage, ElDialog } from 'element-plus'
|
||||||
import { propTypes } from '@/utils/propTypes'
|
import { propTypes } from '@/utils/propTypes'
|
||||||
import { uploadAvatarApi } from '@/api/system/user/profile'
|
import { uploadAvatarApi } from '@/api/system/user/profile'
|
||||||
|
|
|
@ -87,11 +87,11 @@ export default ({ command, mode }: ConfigEnv): UserConfig => {
|
||||||
PurgeIcons(),
|
PurgeIcons(),
|
||||||
viteCompression({
|
viteCompression({
|
||||||
verbose: true, // 是否在控制台输出压缩结果
|
verbose: true, // 是否在控制台输出压缩结果
|
||||||
disable: true, // 是否禁用
|
disable: false, // 是否禁用
|
||||||
threshold: 10240, // 体积大于 threshold 才会被压缩,单位 b
|
threshold: 10240, // 体积大于 threshold 才会被压缩,单位 b
|
||||||
algorithm: 'gzip', // 压缩算法,可选 [ 'gzip' , 'brotliCompress' ,'deflate' , 'deflateRaw']
|
algorithm: 'gzip', // 压缩算法,可选 [ 'gzip' , 'brotliCompress' ,'deflate' , 'deflateRaw']
|
||||||
ext: '.gz', // 生成的压缩包后缀
|
ext: '.gz', // 生成的压缩包后缀
|
||||||
deleteOriginFile: false //压缩后是否删除源文件
|
deleteOriginFile: true //压缩后是否删除源文件
|
||||||
}),
|
}),
|
||||||
createHtmlPlugin({
|
createHtmlPlugin({
|
||||||
inject: {
|
inject: {
|
||||||
|
|
Loading…
Reference in New Issue