BUG 25119

This commit is contained in:
aixianling
2021-12-03 15:18:13 +08:00
parent 4761ff7e82
commit 1d40462fd9
2 changed files with 207 additions and 194 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div :type="type" :openid="openid" v-text="openid"/>
<div :type="type" :openid="oid" v-text="oid"/>
</template>
<script>
@@ -8,6 +8,14 @@ import {mapActions} from "vuex";
export default {
name: "AiOpenData",
props: ['type', 'openid'],
computed: {
oid() {
/**
* 后端返回格式(cropId|userId)
*/
return this.openid?.split("|")?.[1] || this.openid || ""
}
},
methods: {
...mapActions(['injectJWeixin'])
},