diff --git a/build/vite/optimize.ts b/build/vite/optimize.ts index f7a10eb9..416ea02e 100644 --- a/build/vite/optimize.ts +++ b/build/vite/optimize.ts @@ -75,7 +75,8 @@ const include = [ 'element-plus/es/components/dropdown-item/style/css', 'element-plus/es/components/badge/style/css', 'element-plus/es/components/breadcrumb/style/css', - 'element-plus/es/components/breadcrumb-item/style/css' + 'element-plus/es/components/breadcrumb-item/style/css', + 'element-plus/es/components/image/style/css' ] const exclude = ['@iconify/json'] diff --git a/src/components/Icon/src/IconSelect.vue b/src/components/Icon/src/IconSelect.vue index 08fb1a2d..04f4a56a 100644 --- a/src/components/Icon/src/IconSelect.vue +++ b/src/components/Icon/src/IconSelect.vue @@ -95,7 +95,7 @@ watch( return props.modelValue }, () => { - if (props.modelValue && props.modelValue.contains(':')) { + if (props.modelValue && props.modelValue.indexOf(':') >= 0) { currentActiveType.value = props.modelValue.substring(0, props.modelValue.indexOf(':') + 1) icon.value = props.modelValue.substring(props.modelValue.indexOf(':') + 1) } diff --git a/src/types/auto-imports.d.ts b/src/types/auto-imports.d.ts index cfda3e66..75cf16d9 100644 --- a/src/types/auto-imports.d.ts +++ b/src/types/auto-imports.d.ts @@ -62,6 +62,8 @@ declare global { const useRouter: typeof import('vue-router')['useRouter'] const useSlots: typeof import('vue')['useSlots'] const useTable: typeof import('@/hooks/web/useTable')['useTable'] + const useVxeCrudSchemas: typeof import('@/hooks/web/useVxeCrudSchemas')['useVxeCrudSchemas'] + const useXTable: typeof import('@/hooks/web/useXTable')['useXTable'] const watch: typeof import('vue')['watch'] const watchEffect: typeof import('vue')['watchEffect'] const watchPostEffect: typeof import('vue')['watchPostEffect'] diff --git a/src/views/mp/autoReply/index.vue b/src/views/mp/autoReply/index.vue index 9208d1e7..4c8eb388 100644 --- a/src/views/mp/autoReply/index.vue +++ b/src/views/mp/autoReply/index.vue @@ -3,13 +3,16 @@ - - + + + + + - + @@ -18,26 +21,26 @@ plain @click="handleAdd" v-hasPermi="['mp:auto-reply:create']" - v-if="type !== '1' || list.length <= 0" + v-if="msgType !== MsgType.Follow || list.length <= 0" > 新增 - + - + - + @@ -47,10 +50,20 @@ label="请求消息类型" align="center" prop="requestMessageType" - v-if="type === '2'" + v-if="msgType === MsgType.Message" /> - - + + @@ -64,7 +77,7 @@ - diff --git a/src/views/mp/components/wx-editor/WxEditor.vue b/src/views/mp/components/wx-editor/WxEditor.vue index 52e9862f..882924c0 100644 --- a/src/views/mp/components/wx-editor/WxEditor.vue +++ b/src/views/mp/components/wx-editor/WxEditor.vue @@ -1,11 +1,11 @@ +