From 6712a2a984e011a4f60304a8be4138951b1af99c Mon Sep 17 00:00:00 2001 From: zhouhefeng Date: Fri, 10 Apr 2026 11:05:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=8B=E6=9C=BA=E7=AB=AF=E7=AD=BE=E5=AD=97?= =?UTF-8?q?=E4=B8=8D=E8=87=AA=E5=8A=A8=E5=9B=9E=E6=98=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../plugins/sysSignature/h5Index.vue | 11 +++++++++- .../views/platform/zhghh5/sys/home/mine.js | 21 ++++++++++++------- 2 files changed, 23 insertions(+), 9 deletions(-) diff --git a/src/main/resources/static/components/plugins/sysSignature/h5Index.vue b/src/main/resources/static/components/plugins/sysSignature/h5Index.vue index 6272668..73ea947 100644 --- a/src/main/resources/static/components/plugins/sysSignature/h5Index.vue +++ b/src/main/resources/static/components/plugins/sysSignature/h5Index.vue @@ -40,6 +40,13 @@ module.exports = { } }, methods: { + async init() { + const {code, data} = await this.$axios.post("/platform/signature/get") + if (code === 0) { + this.signatureContent = data && data.signature + this.$emit("input", this.signatureContent) + } + }, openSignature() { this.showSignaturePanel = true }, @@ -86,7 +93,9 @@ module.exports = { return new File([blob], filename, { type: contentType }) } }, - created() {} + created() { + this.init() + } } diff --git a/src/main/resources/views/platform/zhghh5/sys/home/mine.js b/src/main/resources/views/platform/zhghh5/sys/home/mine.js index 1f30da2..460b9b9 100644 --- a/src/main/resources/views/platform/zhghh5/sys/home/mine.js +++ b/src/main/resources/views/platform/zhghh5/sys/home/mine.js @@ -91,17 +91,22 @@ const mine = { `, - computed: { - avatar() { - const sex = this.$store.state.user.sex - if (sex === "男" || !sex) { - return "/assets/platform/img/home/avatar_boy.png" - } else { - return "/assets/platform/img/home/avatar_girl.png" - } + data() { + return { + avatar: "" + } + }, + computed: {}, + created() { + const sex = this.$store.state.user.sex + if (sex === "男" || !sex) { + this.avatar = "/assets/platform/img/home/avatar_boy.png" + } else { + this.avatar = "/assets/platform/img/home/avatar_girl.png" } }, methods: { + logout() { this.$dialog .confirm({