fix
This commit is contained in:
File diff suppressed because it is too large
Load Diff
2023
src/tool/canvasGeneralCopy.js
Normal file
2023
src/tool/canvasGeneralCopy.js
Normal file
File diff suppressed because it is too large
Load Diff
@@ -118,11 +118,14 @@ axios.interceptors.response.use((res) =>{
|
||||
export const Https = {
|
||||
httpUrls: {
|
||||
interfaceUrl: '',
|
||||
parseGoogleCredential:'/api/third/party/parseGoogleCredential',//谷歌登录注册
|
||||
parseWeChatCode:'/api/third/party/parseWeChatCode',//微信登录
|
||||
accountIsLogin:'/api/account/isLogin', //判断用户是否登录
|
||||
accountLogin:`/api/account/login`, //账号密码登录接口
|
||||
getUserLanguage:`/api/account/getUserLanguage`, //获取当前用户语言
|
||||
changeUserLanguage:`/api/account/changeUserLanguage`, //切换用户当前语言
|
||||
uploadAvatar:`/api/account/uploadAvatar`, //修改头像
|
||||
accountDetail:`/api/account/getAccountDetail`, //用户详细信息
|
||||
|
||||
trialUserLogout:`/account/trialUserLogout`, //试用用户退出登录接口
|
||||
completeGuidancet:`/api/account/completeGuidance`, //用户指引结束
|
||||
@@ -157,6 +160,8 @@ export const Https = {
|
||||
designCollection:`/api/design/designCollection`, //设计 Conllection
|
||||
reDesignCollection:`/api/design/reDesignCollection`,//重新设计 Conllection
|
||||
countDesignProcess:'/api/design/countDesignProcess', //统计design进度
|
||||
getDesignResult:'/api/design/getDesignResult', //查询design结果
|
||||
|
||||
designProcess:`/api/design/designProcess`, //统计design进度
|
||||
designGetModel:`/api/design/getModel`, //导出获取模特链接
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ class MyWs {
|
||||
this.messageUrl = http+'/notification'
|
||||
this.wsUrl = ''
|
||||
this.reconnectionTime = null
|
||||
this.times = 0
|
||||
}
|
||||
linkWs(url) {
|
||||
if(!(JSON.parse(getCookie("userInfo"))))return
|
||||
@@ -17,6 +18,7 @@ class MyWs {
|
||||
this.ws.onmessage = (e)=>{
|
||||
try {
|
||||
MyWs.receiveText(JSON.parse(e.data))
|
||||
this.times = 0
|
||||
} catch (error) {
|
||||
console.error('websocket',error)
|
||||
}
|
||||
@@ -32,7 +34,9 @@ class MyWs {
|
||||
}
|
||||
}
|
||||
reconnection(){
|
||||
this.times++
|
||||
clearTimeout(this.reconnectionTime)
|
||||
if(this.times>=10)return
|
||||
this.reconnectionTime = setTimeout(()=>{
|
||||
this.linkWs(this.wsUrl)
|
||||
},1000)
|
||||
|
||||
Reference in New Issue
Block a user