diff --git a/templates/model/tuomin/upload.tmpl b/templates/model/tuomin/upload.tmpl index f3d24239b..a79bf9847 100644 --- a/templates/model/tuomin/upload.tmpl +++ b/templates/model/tuomin/upload.tmpl @@ -6,7 +6,8 @@ {{template "base/alert" .}} {{end}} -
+ +
{{template "base/footer" .}} diff --git a/web_src/vuepages/pages/model/tuomin/index.vue b/web_src/vuepages/pages/model/tuomin/index.vue index 56fb26e6a..6c7813977 100644 --- a/web_src/vuepages/pages/model/tuomin/index.vue +++ b/web_src/vuepages/pages/model/tuomin/index.vue @@ -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() {}, };