手机端签字不自动回显
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -91,17 +91,22 @@ const mine = {
|
||||
</div>
|
||||
</div>
|
||||
`,
|
||||
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({
|
||||
|
||||
Reference in New Issue
Block a user