mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-07 04:06:05 +00:00
Update editor.html
This commit is contained in:
parent
05ea48a0be
commit
ea412908ef
|
@ -15,19 +15,16 @@
|
|||
#container {
|
||||
border: 1px solid grey;
|
||||
height: calc(100% - 167px);
|
||||
display: flex;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#editor {
|
||||
float: left;
|
||||
width: 75%;
|
||||
height: 100%;
|
||||
flex: 3;
|
||||
}
|
||||
|
||||
#promptEditor {
|
||||
float: left;
|
||||
width: 25%;
|
||||
height: 100%;
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.banner {
|
||||
|
@ -224,7 +221,7 @@
|
|||
}
|
||||
};
|
||||
|
||||
const getSuggestions = () => axios.get(`${serverPrefix}completion/${encodeURIComponent(word)}`)
|
||||
const getSuggestions = (word) => axios.get(`${serverPrefix}completion/${encodeURIComponent(word)}`)
|
||||
.then(response => {
|
||||
const parser = new XMLParser();
|
||||
const result = parser.parse(response.data);
|
||||
|
|
Loading…
Reference in New Issue
Block a user