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
1bd43eff
authored
Dec 17, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
3fb1ed46
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
xim/xim.ts
xim/xim.ts
View file @
1bd43eff
...
@@ -285,7 +285,6 @@ export class Xim {
...
@@ -285,7 +285,6 @@ export class Xim {
kind
:
string
,
kind
:
string
,
listener
:
ChatNotifyListener
listener
:
ChatNotifyListener
):
this
;
):
this
;
public
on
(
event
:
"chat"
,
listener
:
ChatNotifyListener
):
this
;
public
on
(
event
:
"chat_notify"
,
listener
:
ChatNotifyListener
):
this
;
public
on
(
event
:
"chat_notify"
,
listener
:
ChatNotifyListener
):
this
;
public
on
(
event
:
"status"
,
listener
:
StatusChangeListener
):
this
;
public
on
(
event
:
"status"
,
listener
:
StatusChangeListener
):
this
;
public
on
(...
args
:
any
[]):
this
{
public
on
(...
args
:
any
[]):
this
{
...
@@ -306,7 +305,6 @@ export class Xim {
...
@@ -306,7 +305,6 @@ export class Xim {
kind
:
string
,
kind
:
string
,
listener
:
ChatNotifyListener
listener
:
ChatNotifyListener
):
this
;
):
this
;
public
off
(
event
:
"chat"
,
listener
:
ChatNotifyListener
):
this
;
public
off
(
event
:
"chat_notify"
,
listener
:
ChatNotifyListener
):
this
;
public
off
(
event
:
"chat_notify"
,
listener
:
ChatNotifyListener
):
this
;
public
off
(
event
:
"status"
,
listener
:
StatusChangeListener
):
this
;
public
off
(
event
:
"status"
,
listener
:
StatusChangeListener
):
this
;
public
off
(...
args
:
any
[]):
this
{
public
off
(...
args
:
any
[]):
this
{
...
@@ -430,11 +428,6 @@ export class Xim {
...
@@ -430,11 +428,6 @@ export class Xim {
this
.
on
(
"msg"
,
action
);
this
.
on
(
"msg"
,
action
);
vue
.
$once
(
"hook:beforeDestroy"
,
()
=>
this
.
off
(
"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
();
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