Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
Details
Activity
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
ximai
mes-pad
Commits
27874b8e
Commit
27874b8e
authored
Mar 21, 2024
by
张海景
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update:修改打印机断开加上重连逻辑
parent
8443f5b0
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
$u.mixin.js
store/$u.mixin.js
+3
-3
No files found.
store/$u.mixin.js
View file @
27874b8e
...
...
@@ -25,8 +25,7 @@ module.exports = {
}
},
data
()
{
return
{
}
return
{}
},
computed
:
{
// 将vuex的state中的所有变量,解构到全局混入的mixin中
...
...
@@ -65,6 +64,7 @@ module.exports = {
socket
.
on
(
'disconnect'
,
()
=>
{
console
.
log
(
'打印机断开'
);
this
.
$u
.
vuex
(
'vuex_printConnect'
,
false
);
this
.
createSocket
()
});
getApp
().
globalData
.
printSocket
=
socket
},
...
...
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