Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Madara
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
Madara
Commits
312777e5
Commit
312777e5
authored
Sep 26, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
5507e229
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
13 deletions
+4
-13
index.vue
src/renderer/components/index.vue
+1
-13
contenteditor.vue
src/renderer/components/tools/contenteditor.vue
+3
-0
No files found.
src/renderer/components/index.vue
View file @
312777e5
...
@@ -177,19 +177,7 @@ export default {
...
@@ -177,19 +177,7 @@ export default {
},
},
methods
:
{
methods
:
{
atMsg
(){
atMsg
(){
console
.
log
(
this
.
atInfo
)
this
.
MsgBus
.
$emit
(
'send-at-name'
,
this
.
atInfo
.
atName
)
accids
.
push
({
account
:
this
.
atInfo
.
atId
,
alias
:
'@'
+
this
.
atInfo
.
atName
})
this
.
$store
.
dispatch
(
"sendMsg"
,
{
type
:
"at"
,
scene
:
this
.
scene
,
to
:
this
.
to
,
text
:
this
.
msgToSent
,
content
:
accids
,
callbackTeam
:
this
.
callBackTeam
});
},
},
showCard
(
e
){
showCard
(
e
){
this
.
MsgBus
.
$emit
(
'open-card'
,
this
.
user
.
emName
,
e
.
clientY
,
e
.
clientX
)
this
.
MsgBus
.
$emit
(
'open-card'
,
this
.
user
.
emName
,
e
.
clientY
,
e
.
clientX
)
...
...
src/renderer/components/tools/contenteditor.vue
View file @
312777e5
...
@@ -74,6 +74,9 @@ export default {
...
@@ -74,6 +74,9 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
MsgBus
.
$on
(
"send-at-name"
,
function
(
name
)
{
document
.
querySelector
(
'#msgEditorBox'
).
innerText
=
`@
${
name
}
`
})
this
.
initClip
();
this
.
initClip
();
let
that
=
this
;
let
that
=
this
;
if
(
this
.
members
&&
this
.
members
.
length
>
1
){
if
(
this
.
members
&&
this
.
members
.
length
>
1
){
...
...
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