| | |
| | | export function createUser(winIp: string | number | Array<string | number>) { |
| | | return request({ |
| | | url: '/auth/auto' , |
| | | method: 'put', |
| | | method: 'get', |
| | | data: winIp |
| | | }); |
| | | } |
| | |
| | | const handleUploadSuccess = (res: any, file: UploadFile) => { |
| | | console.log(res,'resresres'); |
| | | if (res.code === 200) { |
| | | emit('closePopup',res.data) |
| | | proxy?.$modal.msgSuccess("上传文件成功"); |
| | | emit('closePopup',res) |
| | | |
| | | console.log('调用父组件',res); |
| | | fileUploadRef.value!.clearFiles() |
| | | downloadLoadingInstance.close(); |
| | | uploadList.value.push({ name: res.data.fileName, url: res.data.url, ossId: res.data.ossId }); |
| | | uploadedSuccessfully(); |
| | | // uploadList.value.push({ name: res.data.fileName, url: res.data.url, ossId: res.data.ossId }); |
| | | // uploadedSuccessfully(); |
| | | }else if (res.code == 401) { |
| | | location.reload() |
| | | } else { |
| | |
| | | |
| | | console.log(code, 'code=============='); |
| | | await router.push({ path: '/login' }); |
| | | // prettier-ignore |
| | | // if (!isRelogin.show) { |
| | | // // isRelogin.show = true; |
| | | // isRelogin.show = true; |
| | | // ElMessageBox.confirm('登录状态已过期,您可以继续留在该页面,或者重新登录', '系统提示', { |
| | | // confirmButtonText: '重新登录', |
| | | // cancelButtonText: '取消', |
| | | // type: 'warning' |
| | | // }).then(() => { |
| | | // isRelogin.show = false; |
| | | // useUserStore().logout().then(() => { |
| | | // location.href = import.meta.env.VITE_APP_CONTEXT_PATH + 'index'; |
| | | // }); |
| | | // }).catch(() => { |
| | | // isRelogin.show = false; |
| | | // }); |
| | | // } |
| | | // return Promise.reject('无效的会话,或者会话已过期,请重新登录。'); |
| | | return |
| | | } else if (code === HttpStatus.SERVER_ERROR) { |
| | | console.log(msg); |
| | |
| | | await childFile.value.handleCilck() |
| | | dialog.visible = false; |
| | | } |
| | | const lookPawsd = async (row: OssVO) => { |
| | | console.log(row, row.ossId); |
| | | testtxt.value = row.password; |
| | | const lookPawsd = async (row:any) => { |
| | | console.log(row); |
| | | // row.msg = ':/"123456' |
| | | testtxt.value = row.msg.slice(2); |
| | | titleDownload.value = '查看提取码' |
| | | pasTxt.value = '' |
| | | visibleCode.value = true |
| | |
| | | open: true, |
| | | proxy: { |
| | | [env.VITE_APP_BASE_API]: { |
| | | // target: '171.221.173.53:8801', |
| | | // target: 'http://80.36.32.175:8080', |
| | | target: 'http://192.168.3.228:8080', |
| | | // target: 'http://192.168.3.43:8080', |
| | | target: 'http://172.35.50.34:8080', |
| | | // target: 'http://192.168.3.228:8080', |
| | | changeOrigin: true, |
| | | rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), '') |
| | | } |