mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
commit
b08b1f8379
@ -33,25 +33,18 @@
|
|||||||
"@vueup/vue-quill": "^1.1.0",
|
"@vueup/vue-quill": "^1.1.0",
|
||||||
"@vueuse/core": "^5.3.0",
|
"@vueuse/core": "^5.3.0",
|
||||||
"axios": "^0.21.4",
|
"axios": "^0.21.4",
|
||||||
"blueimp-md5": "^2.19.0",
|
|
||||||
"clipboard": "^2.0.11",
|
|
||||||
"date-fns": "^2.28.0",
|
"date-fns": "^2.28.0",
|
||||||
"echarts": "^5.3.2",
|
"echarts": "^5.3.2",
|
||||||
"element-resize-detector": "^1.2.4",
|
"element-resize-detector": "^1.2.4",
|
||||||
"highlight.js": "^11.8.0",
|
"highlight.js": "^11.8.0",
|
||||||
"lodash": "^4.17.21",
|
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"mitt": "^2.1.0",
|
|
||||||
"mockjs": "^1.1.0",
|
|
||||||
"naive-ui": "^2.34.3",
|
"naive-ui": "^2.34.3",
|
||||||
"node-sass": "^7.0.3",
|
|
||||||
"pinia": "^2.0.14",
|
"pinia": "^2.0.14",
|
||||||
"qrcode.vue": "3.3.3",
|
"qrcode.vue": "3.3.3",
|
||||||
"qs": "^6.10.3",
|
"qs": "^6.10.3",
|
||||||
"quill-image-uploader": "^1.2.4",
|
"quill-image-uploader": "^1.2.4",
|
||||||
"quill-magic-url": "^4.2.0",
|
"quill-magic-url": "^4.2.0",
|
||||||
"throttle-debounce": "^5.0.0",
|
"throttle-debounce": "^5.0.0",
|
||||||
"vfonts": "^0.1.0",
|
|
||||||
"vue": "^3.2.35",
|
"vue": "^3.2.35",
|
||||||
"vue-router": "^4.0.15",
|
"vue-router": "^4.0.15",
|
||||||
"vue-types": "^4.1.1",
|
"vue-types": "^4.1.1",
|
||||||
|
@ -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>
|
<script lang="ts" setup>
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import { MessageRow, parseMessage } from '@/enums/systemMessageEnum';
|
import { getIcon, MessageRow, parseMessage } from '@/enums/systemMessageEnum';
|
||||||
import { getIcon } from '@/enums/systemMessageEnum';
|
|
||||||
import { MessageList, UpRead } from '@/api/apply/notice';
|
import { MessageList, UpRead } from '@/api/apply/notice';
|
||||||
import { debounce } from 'throttle-debounce';
|
import { debounce } from 'lodash-es';
|
||||||
import { notificationStoreWidthOut } from '@/store/modules/notification';
|
import { notificationStoreWidthOut } from '@/store/modules/notification';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
@ -120,9 +119,9 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const debounceCallback = debounce(1000, function () {
|
const debounceCallback = debounce(function () {
|
||||||
notificationStore.pullMessages();
|
notificationStore.pullMessages();
|
||||||
});
|
}, 1000);
|
||||||
|
|
||||||
function getBadgePops(item: MessageRow) {
|
function getBadgePops(item: MessageRow) {
|
||||||
if (item.isRead) {
|
if (item.isRead) {
|
||||||
@ -130,6 +129,7 @@
|
|||||||
}
|
}
|
||||||
return { dot: true, processing: true, offset: [-2, 2] };
|
return { dot: true, processing: true, offset: [-2, 2] };
|
||||||
}
|
}
|
||||||
|
|
||||||
function onUpdatePage(page: number) {
|
function onUpdatePage(page: number) {
|
||||||
dataSource.value.page = page;
|
dataSource.value.page = page;
|
||||||
loadDataSource();
|
loadDataSource();
|
||||||
|
Loading…
Reference in New Issue
Block a user