我们提供融合门户系统招投标所需全套资料,包括融合系统介绍PPT、融合门户系统产品解决方案、
融合门户系统产品技术参数,以及对应的标书参考文件,详请联系客服。
@RestController
public class BidController {
@PostMapping("/upload")
public ResponseEntity
try {
String fileName = file.getOriginalFilename();
Path path = Paths.get("uploads/" + fileName);
Files.write(path, file.getBytes());
return ResponseEntity.ok("文件上传成功");
} catch (IOException e) {
return ResponseEntity.status(500).body("文件上传失败");
}
}
}
export default {
data() {
return {
bids: []
};
},
mounted() {
fetch('/api/bids')
.then(response => response.json())
.then(data => this.bids = data);
}
};
