Skip to content

Commit fb2d763

Browse files
authored
Fix int format (#18)
Fixes #17
1 parent 0bba957 commit fb2d763

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

src/components/SendTaskDialog.vue

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
name="copies"
7474
min="1"
7575
max="10"
76-
v-model="copies"
76+
v-model.lazy="copies"
7777
required
7878
/>
7979
</div>
@@ -117,7 +117,6 @@
117117
<script>
118118
import axios from "axios";
119119
120-
121120
export default {
122121
data() {
123122
return {
@@ -148,6 +147,9 @@ export default {
148147
number(new_number) {
149148
localStorage.setItem("number", new_number);
150149
},
150+
copies(new_copies) {
151+
this.copies = parseInt(new_copies);
152+
},
151153
},
152154
methods: {
153155
async send() {
@@ -206,7 +208,10 @@ export default {
206208
var body_data = new FormData();
207209
body_data.append("file", this.file);
208210
209-
await axios.post(`${process.env.VUE_APP_API_PRINTER}/file/${this.api_pin}`, body_data);
211+
await axios.post(
212+
`${process.env.VUE_APP_API_PRINTER}/file/${this.api_pin}`,
213+
body_data
214+
);
210215
},
211216
},
212217
};

src/utils/marketing.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export function get_marketing_id() {
22
let marketing_id = localStorage.getItem("marketing-id");
3-
if (marketing_id && marketing_id !== 'null') return marketing_id;
3+
if (marketing_id && marketing_id !== "null") return marketing_id;
44

55
const urlParams = new URLSearchParams(window.location.search);
66
marketing_id = urlParams.get("marketing_id");

src/views/History.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default defineComponent({
3030
mounted() {
3131
this.hist = get_history();
3232
this.hist.reverse();
33-
log_open_history()
33+
log_open_history();
3434
},
3535
});
3636
</script>

0 commit comments

Comments
 (0)