diff --git a/package.json b/package.json index d76ae4b..e61aab4 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,8 @@ "npm": "^10.5.0", "nprogress": "^0.2.0", "pinia": "^2.1.7", + "stompjs": "^2.3.3", + "sockjs-client": "^1.6.1", "typescript": "^5.3.3", "vue": "^3.3.11", "vue-echarts": "^6.6.8", @@ -34,6 +36,7 @@ "devDependencies": { "@vitejs/plugin-vue": "^4.5.2", "amfe-flexible": "^2.2.1", + "mitt": "^3.0.1", "postcss-pxtorem": "^6.1.0", "sass": "^1.69.7", "unplugin-auto-import": "^0.17.3", diff --git a/public/mp3/notice.mp3 b/public/mp3/notice.mp3 new file mode 100644 index 0000000..ec2cdc8 Binary files /dev/null and b/public/mp3/notice.mp3 differ diff --git a/src/api/message.ts b/src/api/message.ts deleted file mode 100644 index 8d7ec49..0000000 --- a/src/api/message.ts +++ /dev/null @@ -1,31 +0,0 @@ -import request from '@/utils/request' - -// 通知设置列表 -export function noticeLists(params: any) { - return request.get({ url: '/setting/notice/list', params }) -} - -// 通知设置详情 -export function noticeDetail(params: any) { - return request.get({ url: '/setting/notice/detail', params }) -} - -// 通知设置保存 -export function setNoticeConfig(params: any) { - return request.post({ url: '/setting/notice/save', params }) -} - -// 短信设置列表 -export function smsLists() { - return request.get({ url: '/setting/sms/list' }) -} - -// 短信设置详情 -export function smsDetail(params: any) { - return request.get({ url: '/setting/sms/detail', params }) -} - -// 短信设置保存 -export function setSmsConfig(params: any) { - return request.post({ url: '/setting/sms/save', params }) -} diff --git a/src/api/notice.ts b/src/api/notice.ts new file mode 100644 index 0000000..de2738b --- /dev/null +++ b/src/api/notice.ts @@ -0,0 +1,5 @@ +import request from '@/utils/request' + +export function noticeTotal() { + return request.get({ url: '/notice/total' }) +} \ No newline at end of file diff --git a/src/layout/components/Header.vue b/src/layout/components/Header.vue index 7793ea6..0689843 100644 --- a/src/layout/components/Header.vue +++ b/src/layout/components/Header.vue @@ -26,12 +26,13 @@