diff --git a/mock/apiDemo/menu.ts b/mock/apiDemo/menu.ts index f94456b5..e9bd75b7 100644 --- a/mock/apiDemo/menu.ts +++ b/mock/apiDemo/menu.ts @@ -1,4 +1,3 @@ -import { objectEach } from 'xe-utils'; import { success, fail } from '../helper'; let id = 100000; const menu = [ diff --git a/mock/apiDemo/statistics.ts b/mock/apiDemo/statistics.ts index 6a3414e3..e0ce553b 100644 --- a/mock/apiDemo/statistics.ts +++ b/mock/apiDemo/statistics.ts @@ -1,4 +1,4 @@ -import { success, fail } from '../helper'; +import { success } from '../helper'; //请求地址是按先后顺序模糊匹配 export default [ { diff --git a/src/components/meComponent.ts b/src/components/meComponent.ts index 2315837a..889a02d7 100644 --- a/src/components/meComponent.ts +++ b/src/components/meComponent.ts @@ -17,7 +17,7 @@ export default defineComponent({ transition: Object as PropType, }, setup(props, { attrs }) { - const { loadMessages, clearCache } = useLoadMessages(); + const loadMessages = useLoadMessages(); const componentIs: Ref = ref(undefined); const key = ref(props.componentKey); const _attrs = ref(attrs); @@ -26,12 +26,11 @@ export default defineComponent({ async (is) => { if (is) { localeConfig.loadMessageConfig.componentLoad && (await Promise.allSettled(loadMessages(is as any, false))); // 自动加载语言包 - clearCache(); componentIs.value = is; key.value = props.componentKey; _attrs.value = attrs; props.doneProgress && done(); - props.closeLoading && closeLoading(false,1,props.closeLoading); + props.closeLoading && closeLoading(false, 1, props.closeLoading); } }, { immediate: true }, diff --git a/src/components/meDialog/hooks/minMax.ts b/src/components/meDialog/hooks/minMax.ts index c46842fb..1adc0852 100644 --- a/src/components/meDialog/hooks/minMax.ts +++ b/src/components/meDialog/hooks/minMax.ts @@ -41,7 +41,7 @@ export default (el: HTMLDivElement & { fullscreen: boolean }) => { //设置其背景颜色为主色 maxMinButton.style.color = 'var(--el-color-primary)'; }; - maxMinButton.onmouseout = function (e) { + maxMinButton.onmouseout = function () { //设置其背景颜色为默认色 maxMinButton.style.color = 'var(--el-color-info)'; }; @@ -80,7 +80,7 @@ export default (el: HTMLDivElement & { fullscreen: boolean }) => { //binding.value({x:e.pageX,y:e.pageY}) }; - document.onmouseup = function (e) { + document.onmouseup = function () { document.onmousemove = null; document.onmouseup = null; }; @@ -148,7 +148,7 @@ export default (el: HTMLDivElement & { fullscreen: boolean }) => { dragDom.style.height = y > minHeight ? `${y}px` : minHeight + 'px'; }; //拉伸结束 - document.onmouseup = function (e) { + document.onmouseup = function () { document.onmousemove = null; document.onmouseup = null; el.dispatchEvent(resizeEvent); diff --git a/src/components/meDialog/index.vue b/src/components/meDialog/index.vue index b9ec8da9..55206ba1 100644 --- a/src/components/meDialog/index.vue +++ b/src/components/meDialog/index.vue @@ -1,7 +1,7 @@ diff --git a/src/components/meTable/index.vue b/src/components/meTable/index.vue index 38aef111..783a5af5 100644 --- a/src/components/meTable/index.vue +++ b/src/components/meTable/index.vue @@ -74,7 +74,7 @@ - + diff --git a/src/components/meVxeTable/index.vue b/src/components/meVxeTable/index.vue index 0bb8c398..471430fe 100644 --- a/src/components/meVxeTable/index.vue +++ b/src/components/meVxeTable/index.vue @@ -104,8 +104,6 @@ import { VxeTablePropTypes, } from 'vxe-table'; import { debounce } from 'lodash-es'; -import { ElPagination } from 'element-plus'; -import { useGlobalStore } from '@/store'; const props = { meClass: [String, Array as PropType], name: { diff --git a/src/components/meWangEditor/index.vue b/src/components/meWangEditor/index.vue index 1060d02e..3b6c6b23 100644 --- a/src/components/meWangEditor/index.vue +++ b/src/components/meWangEditor/index.vue @@ -29,7 +29,7 @@ import { onBeforeUnmount, shallowRef, PropType } from 'vue'; import { Editor, Toolbar } from '@wangeditor/editor-for-vue'; import { i18nChangeLanguage, IEditorConfig, IToolbarConfig, IDomEditor, SlateDescendant } from '@wangeditor/editor'; import { useGlobalStore } from '@/store'; -const props = defineProps({ +defineProps({ mode: { type: String as PropType<'simple' | 'default'>, default: 'default', diff --git a/src/locales/hooks.ts b/src/locales/hooks.ts index 5a3fdd8c..c07d86d4 100644 --- a/src/locales/hooks.ts +++ b/src/locales/hooks.ts @@ -73,10 +73,6 @@ export const useLoadMessages = () => { locale: string | undefined = undefined, importArr: Array> = [], ) => { - if (cache.has(options)) { - return importArr; - } - cache.add(options); if (typeof options === 'string') { const component = app.component(capitalize(camelize(options))); loadMessages(component as ComponentOptions, isLoading, locale, importArr); @@ -107,5 +103,5 @@ export const useLoadMessages = () => { } return importArr; }; - return { loadMessages, clearCache: () => cache.clear() }; + return loadMessages; }; diff --git a/src/views/customForm.vue b/src/views/customForm.vue index 41c19e46..211ab9f7 100644 --- a/src/views/customForm.vue +++ b/src/views/customForm.vue @@ -64,7 +64,7 @@ import { ElUpload, ElSpace, } from 'element-plus'; -import { ElDesignForm, ElGenerateForm } from 'vue-form-create'; +import { ElDesignForm } from 'vue-form-create'; const app = getCurrentInstance()?.appContext.app; if (app && !app.config.globalProperties.$initCreate) { [ diff --git a/src/views/rolePermissions/components/menu/components/add.vue b/src/views/rolePermissions/components/menu/components/add.vue index e16dc625..db2d8875 100644 --- a/src/views/rolePermissions/components/menu/components/add.vue +++ b/src/views/rolePermissions/components/menu/components/add.vue @@ -40,15 +40,14 @@