remove encoding while get
This commit is contained in:
@@ -99,12 +99,9 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
const file = this.fileName;
|
const file = this.fileName;
|
||||||
if (file != "default") {
|
if (file != "default") {
|
||||||
const response = await fetch(
|
const response = await fetch(`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${file}`, {
|
||||||
`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${encodeURIComponent(file)}`,
|
cache: "no-cache",
|
||||||
{
|
});
|
||||||
cache: "no-cache",
|
|
||||||
},
|
|
||||||
);
|
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
this.newGcode = text;
|
this.newGcode = text;
|
||||||
|
|||||||
@@ -226,7 +226,7 @@ script#control-view-template(type="text/x-template")
|
|||||||
|
|
||||||
.macros-div(class="present")
|
.macros-div(class="present")
|
||||||
button.macros-button(title="Click to run Macros",v-for="(index,macros) in config.macros",
|
button.macros-button(title="Click to run Macros",v-for="(index,macros) in config.macros",
|
||||||
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color; }") {{macros.name}}
|
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color }") {{macros.name}}
|
||||||
|
|
||||||
.tabs
|
.tabs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user