Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
1e1c37e9
Commit
1e1c37e9
authored
May 22, 2025
by
qinjianhui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 报错修改
parent
e471d117
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
src/api/podUsOrder.ts
+2
-2
src/utils/websocket.ts
+1
-2
No files found.
src/api/podUsOrder.ts
View file @
1e1c37e9
...
@@ -89,8 +89,8 @@ export function getSubOrderBySubOrderNumber(factorySubOrderNumber: string) {
...
@@ -89,8 +89,8 @@ export function getSubOrderBySubOrderNumber(factorySubOrderNumber: string) {
},
},
)
)
}
}
export
function
downloadMaterialApi
(
id
:
Array
<
number
>
)
{
export
function
downloadMaterialApi
(
id
:
number
[]
)
{
return
axios
.
post
<
never
,
BaseRespData
<
Array
<
string
>
>>
(
return
axios
.
post
<
never
,
BaseRespData
<
never
>>
(
'factory/podJomallOrderProductUs/downloadDesignImages'
,
'factory/podJomallOrderProductUs/downloadDesignImages'
,
id
,
id
,
)
)
...
...
src/utils/websocket.ts
View file @
1e1c37e9
...
@@ -61,7 +61,7 @@ const showReconnectingMsg = (): void => {
...
@@ -61,7 +61,7 @@ const showReconnectingMsg = (): void => {
class
Im
{
class
Im
{
private
socket
:
WebSocket
|
null
=
null
private
socket
:
WebSocket
|
null
=
null
private
_wsUrl
:
string
=
''
private
_wsUrl
:
string
=
''
private
userId
:
string
=
''
//
private userId: string = ''
private
_onMessageCallback
?:
MessageCallback
private
_onMessageCallback
?:
MessageCallback
private
_onOpenCallback
?:
OpenCallback
private
_onOpenCallback
?:
OpenCallback
private
_heartbeatTimer
:
number
|
null
=
null
private
_heartbeatTimer
:
number
|
null
=
null
...
@@ -197,7 +197,6 @@ class Im {
...
@@ -197,7 +197,6 @@ class Im {
openfunc
?:
OpenCallback
,
openfunc
?:
OpenCallback
,
):
void
{
):
void
{
const
{
account
,
factoryNo
}
=
options
const
{
account
,
factoryNo
}
=
options
this
.
userId
=
account
const
socket_connect
=
localStorage
.
getItem
(
'socket_connect'
)
const
socket_connect
=
localStorage
.
getItem
(
'socket_connect'
)
if
(
socket_connect
===
'online'
)
return
if
(
socket_connect
===
'online'
)
return
...
...
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