update updateFile
parent
9b0c24d983
commit
8af62b5566
|
@ -2,6 +2,7 @@
|
|||
"name": "playable-preview",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"homepage": "/preview",
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.7.1",
|
||||
"@emotion/styled": "^11.6.0",
|
||||
|
|
|
@ -53,13 +53,10 @@ class App extends React.Component {
|
|||
UpdateSetting(obj) {
|
||||
var body = {
|
||||
...obj,
|
||||
Name: this.state.selectedProject.Name,
|
||||
fileName: this.state.selectedProject.Name,
|
||||
};
|
||||
var query = Object.keys(body).map(k => `${k}=${body[k]}`).join('&')
|
||||
fetch(`http://123.56.161.61:1157/home/UpdateFileContentNew`, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(body)
|
||||
})
|
||||
fetch(`http://123.56.161.61:1157/home/UpdateFileContentNew?${query}`)
|
||||
.then(() =>
|
||||
console.log('update success')
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue