Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
4e97b32e
Commit
4e97b32e
authored
Oct 29, 2023
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新技术
parent
ec54df06
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
6 deletions
+5
-6
src/view/ddkz/ddkzzs.vue
src/view/ddkz/ddkzzs.vue
+4
-5
src/view/xjssy/components/newTechniqueDialog.vue
src/view/xjssy/components/newTechniqueDialog.vue
+1
-1
No files found.
src/view/ddkz/ddkzzs.vue
View file @
4e97b32e
...
@@ -77,16 +77,15 @@ export default {
...
@@ -77,16 +77,15 @@ export default {
this
.
stompClient
&&
this
.
stompClient
.
connected
&&
this
.
stompClient
.
disconnect
();
this
.
stompClient
&&
this
.
stompClient
.
connected
&&
this
.
stompClient
.
disconnect
();
this
.
stompClient
=
Stomp
.
over
(
this
.
ws
);
this
.
stompClient
=
Stomp
.
over
(
this
.
ws
);
this
.
stompClient
.
heartbeat
.
outgoing
=
20000
;
//若使用STOMP 1.1 版本,默认开启了心跳检测机制(默认值都是10000ms)
this
.
stompClient
.
heartbeat
.
outgoing
=
20000
;
//若使用STOMP 1.1 版本,默认开启了心跳检测机制(默认值都是10000ms)
this
.
stompClient
.
heartbeat
.
incoming
=
20000
;
//客户端
不
从服务端接收心跳包
this
.
stompClient
.
heartbeat
.
incoming
=
20000
;
//客户端从服务端接收心跳包
this
.
stompClient
.
debug
=
null
;
this
.
stompClient
.
debug
=
null
;
this
.
stompClient
.
connect
({
name
:
this
.
userInfo
.
account
},
frame
=>
{
this
.
stompClient
.
connect
({
name
:
this
.
userInfo
.
account
,
token
:
sessionStorage
.
getItem
(
"
token
"
)
},
frame
=>
{
// resolve("连接成功")
// resolve("连接成功")
},
err
=>
{
},
err
=>
{
console
.
log
(
typeof
err
==
"
string
"
?
err
:
err
.
headers
.
message
)
console
.
log
(
new
Date
().
toLocaleTimeString
()
+
(
typeof
err
==
"
string
"
?
err
:
err
.
headers
.
message
)
)
reject
(
typeof
err
==
"
string
"
?
err
:
err
.
headers
.
message
)
reject
(
typeof
err
==
"
string
"
?
err
:
err
.
headers
.
message
)
});
});
});
})
},
},
reconnect
(){
reconnect
(){
if
(
this
.
_lockReconnect
)
return
;
if
(
this
.
_lockReconnect
)
return
;
...
...
src/view/xjssy/components/newTechniqueDialog.vue
View file @
4e97b32e
...
@@ -56,7 +56,7 @@ export default {
...
@@ -56,7 +56,7 @@ export default {
if
(
this
.
form
.
technique
==
1
)
{
if
(
this
.
form
.
technique
==
1
)
{
if
(
this
.
form
.
text
.
trim
()
!=
''
)
{
if
(
this
.
form
.
text
.
trim
()
!=
''
)
{
entity
({
action
:
"
entity_extract
"
,
language
:
"
zh
"
,
text
:
this
.
form
.
text
.
trim
()
}).
then
(
res
=>
{
entity
({
action
:
"
entity_extract
"
,
language
:
"
zh
"
,
text
:
this
.
form
.
text
.
trim
()
}).
then
(
res
=>
{
this
.
form
.
result
=
res
.
score
;
this
.
form
.
result
=
res
.
map
(
e
=>
e
.
entity_list
.
map
(
a
=>
a
.
entity_name
).
join
()).
filter
(
b
=>
b
.
length
).
join
()
;
}).
catch
(
err
=>
{
}).
catch
(
err
=>
{
this
.
$message
.
warning
(
err
.
message
);
this
.
$message
.
warning
(
err
.
message
);
})
})
...
...
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