新功能: 加入消息中心

pull/68/head
猿小天 2022-08-14 19:34:25 +08:00
parent 888a3b73e8
commit ef2025f157
4 changed files with 5 additions and 7 deletions

View File

@ -65,5 +65,5 @@ function webSocketSend (message) {
this.socket.send(JSON.stringify(message)) this.socket.send(JSON.stringify(message))
} }
export default { export default {
initWebSocket, close,webSocketSend initWebSocket, close, webSocketSend
} }

View File

@ -217,7 +217,7 @@ export default {
gotoRoute (route) { gotoRoute (route) {
this.$router.push(route) this.$router.push(route)
} }
}, }
} }
</script> </script>

View File

@ -22,8 +22,6 @@ export function GetSelfReceive (query) {
}) })
} }
export function GetObj (obj) { export function GetObj (obj) {
return request({ return request({
url: urlPrefix + obj.id + '/', url: urlPrefix + obj.id + '/',

View File

@ -26,7 +26,7 @@
</template> </template>
<script> <script>
import { AddObj, GetObj, GetList, UpdateObj, DelObj,GetSelfReceive } from './api' import { AddObj, GetObj, GetList, UpdateObj, DelObj, GetSelfReceive } from './api'
import { crudOptions } from './crud' import { crudOptions } from './crud'
import { d2CrudPlus } from 'd2-crud-plus' import { d2CrudPlus } from 'd2-crud-plus'
export default { export default {
@ -35,7 +35,7 @@ export default {
mixins: [d2CrudPlus.crud], mixins: [d2CrudPlus.crud],
data () { data () {
return { return {
tabActivted:"send" tabActivted: 'send'
} }
}, },
created () { created () {
@ -86,7 +86,7 @@ export default {
handleFormComponentReady (event, key, form) { handleFormComponentReady (event, key, form) {
// console.log('form component ready:', event, key, form) // console.log('form component ready:', event, key, form)
}, },
onTabClick(obj){ onTabClick (obj) {
this.doRefresh() this.doRefresh()
} }
} }