From 785ac47d7bfd482e36745f51e204e7a211831d45 Mon Sep 17 00:00:00 2001 From: zhoupzh Date: Wed, 19 Oct 2022 09:38:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=AA=E7=99=BB=E5=BD=95=E6=97=B6=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E7=99=BB=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/model/tuomin/upload.tmpl | 3 ++- web_src/vuepages/pages/model/tuomin/index.vue | 10 +++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) 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() {}, };