|
|
@@ -171,6 +171,7 @@ export default { |
|
|
|
mode: this.$t("all"), |
|
|
|
}, |
|
|
|
], |
|
|
|
startFlag: false, |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: {}, |
|
|
@@ -210,6 +211,10 @@ export default { |
|
|
|
document.body.removeChild(a); |
|
|
|
}, |
|
|
|
startTranform() { |
|
|
|
if (!this.startFlag) { |
|
|
|
window.location.href = "/user/login"; |
|
|
|
return; |
|
|
|
} |
|
|
|
if (!this.file) return; |
|
|
|
let fd = new FormData(); |
|
|
|
fd.append("file", this.file.raw); |
|
|
@@ -248,7 +253,10 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
mounted() {}, |
|
|
|
mounted() { |
|
|
|
const signEl = document.querySelector("#isSignd"); |
|
|
|
this.startFlag = !!signEl.getAttribute("data-sign"); |
|
|
|
}, |
|
|
|
beforeDestroy() {}, |
|
|
|
}; |
|
|
|
</script> |
|
|
|