mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-11-12 04:03:44 +08:00
优化依赖包
This commit is contained in:
@@ -1,12 +0,0 @@
|
||||
/**
|
||||
* 这里按需引入lodash的一些方法,方便维护
|
||||
*/
|
||||
|
||||
// export {default as xxx} from 'lodash/xxx'
|
||||
|
||||
export { default as cloneDeep } from 'lodash/cloneDeep';
|
||||
export { default as intersection } from 'lodash/intersection';
|
||||
export { default as get } from 'lodash/get';
|
||||
export { default as upperFirst } from 'lodash/upperFirst';
|
||||
export { default as omit } from 'lodash/omit';
|
||||
export { default as debounce } from 'lodash/debounce';
|
||||
@@ -58,10 +58,9 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, ref } from 'vue';
|
||||
import { MessageRow, parseMessage } from '@/enums/systemMessageEnum';
|
||||
import { getIcon } from '@/enums/systemMessageEnum';
|
||||
import { getIcon, MessageRow, parseMessage } from '@/enums/systemMessageEnum';
|
||||
import { MessageList, UpRead } from '@/api/apply/notice';
|
||||
import { debounce } from 'throttle-debounce';
|
||||
import { debounce } from 'lodash-es';
|
||||
import { notificationStoreWidthOut } from '@/store/modules/notification';
|
||||
|
||||
interface Props {
|
||||
@@ -120,9 +119,9 @@
|
||||
});
|
||||
}
|
||||
|
||||
const debounceCallback = debounce(1000, function () {
|
||||
const debounceCallback = debounce(function () {
|
||||
notificationStore.pullMessages();
|
||||
});
|
||||
}, 1000);
|
||||
|
||||
function getBadgePops(item: MessageRow) {
|
||||
if (item.isRead) {
|
||||
@@ -130,6 +129,7 @@
|
||||
}
|
||||
return { dot: true, processing: true, offset: [-2, 2] };
|
||||
}
|
||||
|
||||
function onUpdatePage(page: number) {
|
||||
dataSource.value.page = page;
|
||||
loadDataSource();
|
||||
|
||||
Reference in New Issue
Block a user