提交 7306cd85 作者: ZhangLingKun

功能:breakpoint、后端女pms

上级 dde308e8
...@@ -8,4 +8,7 @@ export class CommonAPI { ...@@ -8,4 +8,7 @@ export class CommonAPI {
// 上传图片 // 上传图片
static uploadOss: uploadOssType = (data) => axios.post('/pms/upload/oss', data); static uploadOss: uploadOssType = (data) => axios.post('/pms/upload/oss', data);
// 断点上传
static uploadOssBP: uploadOssType = (data) => axios.post('/pms/upload/breakpoint', data);
} }
...@@ -77,7 +77,7 @@ export const Uploader: React.FC<PropsType> = (props) => { ...@@ -77,7 +77,7 @@ export const Uploader: React.FC<PropsType> = (props) => {
// 上传到服务器 // 上传到服务器
const formData = new FormData(); const formData = new FormData();
formData.append('uploadFile', res.file); formData.append('uploadFile', res.file);
CommonAPI.uploadOss(formData).then( CommonAPI.uploadOssBP(formData).then(
// eslint-disable-next-line @typescript-eslint/ban-ts-comment // eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore // @ts-ignore
(val: { result: { filePath: string } }) => { (val: { result: { filePath: string } }) => {
......
...@@ -11,6 +11,7 @@ export default defineConfig({ ...@@ -11,6 +11,7 @@ export default defineConfig({
host: '0.0.0.0', host: '0.0.0.0',
proxy: { proxy: {
'/api': { '/api': {
// target: 'http://192.168.3.111:8099', // 后端女pms
// target: 'http://192.168.3.111:8077', // 后端女oms // target: 'http://192.168.3.111:8077', // 后端女oms
// target: 'http://192.168.3.17:8099', // 狗旺 // target: 'http://192.168.3.17:8099', // 狗旺
target: 'https://test.iuav.shop', target: 'https://test.iuav.shop',
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论