parent
d9570036be
commit
3c6853dfef
3
core/core-frontend/src/api/msg.ts
Normal file
3
core/core-frontend/src/api/msg.ts
Normal file
@ -0,0 +1,3 @@
|
||||
import request from '@/config/axios'
|
||||
|
||||
export const msgCountApi = () => request.post({ url: '/msg-center/count', data: {} })
|
||||
@ -11,7 +11,6 @@ import { formatRoute } from '@/router/establish'
|
||||
import HeaderMenuItem from './HeaderMenuItem.vue'
|
||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { Icon } from '@/components/icon-custom'
|
||||
import { ElHeader, ElMenu } from 'element-plus-secondary'
|
||||
import SystemCfg from './SystemCfg.vue'
|
||||
import ToolboxCfg from './ToolboxCfg.vue'
|
||||
import { useRouter, useRoute } from 'vue-router'
|
||||
@ -30,6 +29,7 @@ const { push } = useRouter()
|
||||
const route = useRoute()
|
||||
import { useCache } from '@/hooks/web/useCache'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
import { msgCountApi } from '@/api/msg'
|
||||
const { wsCache } = useCache('localStorage')
|
||||
const aiBaseUrl = ref('https://maxkb.fit2cloud.com/ui/chat/2ddd8b594ce09dbb?mode=embed')
|
||||
const handleIconClick = () => {
|
||||
@ -125,6 +125,10 @@ onMounted(() => {
|
||||
initShowToolbox()
|
||||
initAiBase()
|
||||
initCopilotBase()
|
||||
|
||||
msgCountApi().then(res => {
|
||||
console.log(res.data)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
2
de-xpack
2
de-xpack
@ -1 +1 @@
|
||||
Subproject commit 4d24ba63004826d8a87f42f7e25798cc4e94345f
|
||||
Subproject commit bce7b3f10828b3ad035b48a343d3e9e8c1206e9d
|
||||
@ -0,0 +1,12 @@
|
||||
package io.dataease.api.msgCenter;
|
||||
|
||||
import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
|
||||
@Tag(name = "消息中心")
|
||||
public interface MsgCenterApi {
|
||||
|
||||
@PostMapping("/count")
|
||||
long count();
|
||||
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user