Commit 1e1c37e9 by qinjianhui

fix: 报错修改

parent e471d117
......@@ -89,8 +89,8 @@ export function getSubOrderBySubOrderNumber(factorySubOrderNumber: string) {
},
)
}
export function downloadMaterialApi(id: Array<number>) {
return axios.post<never, BaseRespData<Array<string>>>(
export function downloadMaterialApi(id: number[]) {
return axios.post<never, BaseRespData<never>>(
'factory/podJomallOrderProductUs/downloadDesignImages',
id,
)
......
......@@ -61,7 +61,7 @@ const showReconnectingMsg = (): void => {
class Im {
private socket: WebSocket | null = null
private _wsUrl: string = ''
private userId: string = ''
// private userId: string = ''
private _onMessageCallback?: MessageCallback
private _onOpenCallback?: OpenCallback
private _heartbeatTimer: number | null = null
......@@ -197,7 +197,6 @@ class Im {
openfunc?: OpenCallback,
): void {
const { account, factoryNo } = options
this.userId = account
const socket_connect = localStorage.getItem('socket_connect')
if (socket_connect === 'online') return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment