与C++联动,根据返回值才执行上传pvf
This commit is contained in:
1
dist/apiClient.js
vendored
1
dist/apiClient.js
vendored
@@ -154,6 +154,7 @@ class ApiClient {
|
||||
async uploadFileContent(filePath, content) {
|
||||
try {
|
||||
const url = this.getFullUrl(`/Api/PvfUtiltiy/ImportFile?filePath=${encodeURIComponent(filePath)}`);
|
||||
console.log(`上传文件URL: ${url}`);
|
||||
const result = await this.request(url, 'POST', content, {
|
||||
'Content-Type': 'text/plain; charset=utf-8',
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user