Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
3fb1ed46
authored
Dec 17, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
887ff12a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
xim/xim.ts
xim/xim.ts
View file @
3fb1ed46
...
...
@@ -285,7 +285,7 @@ export class Xim {
kind
:
string
,
listener
:
ChatNotifyListener
):
this
;
public
on
(
event
:
"chat"
,
listener
:
ChatNotifyListener
):
this
;
public
on
(
event
:
"chat_notify"
,
listener
:
ChatNotifyListener
):
this
;
public
on
(
event
:
"status"
,
listener
:
StatusChangeListener
):
this
;
public
on
(...
args
:
any
[]):
this
{
...
...
@@ -306,7 +306,7 @@ export class Xim {
kind
:
string
,
listener
:
ChatNotifyListener
):
this
;
public
off
(
event
:
"chat"
,
listener
:
ChatNotifyListener
):
this
;
public
off
(
event
:
"chat_notify"
,
listener
:
ChatNotifyListener
):
this
;
public
off
(
event
:
"status"
,
listener
:
StatusChangeListener
):
this
;
public
off
(...
args
:
any
[]):
this
{
...
...
@@ -430,6 +430,11 @@ export class Xim {
this
.
on
(
"msg"
,
action
);
vue
.
$once
(
"hook:beforeDestroy"
,
()
=>
this
.
off
(
"msg"
,
action
));
}
public
registerOnChatChanged
(
vue
:
Vue
,
action
:
()
=>
void
)
{
this
.
on
(
"chat"
,
action
);
vue
.
$once
(
"hook:beforeDestroy"
,
()
=>
this
.
off
(
"chat"
,
action
));
}
}
const
ximInstance
=
new
Xim
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment