mirror of
https://github.com/ialley-workshop-open/uni-halo.git
synced 2025-06-08 03:40:16 +09:00
fix: 修复分享图片失效问题
This commit is contained in:
parent
cc05b64dec
commit
b42932ddad
@ -1,12 +1,15 @@
|
|||||||
// 微信分享配置
|
// 微信分享配置
|
||||||
import HaloTokenConfig from '@/config/token.config.js'
|
import HaloTokenConfig from '@/config/token.config.js'
|
||||||
import {jsonToUrlParams2} from '@/utils/url.params.js'
|
import {jsonToUrlParams2} from '@/utils/url.params.js'
|
||||||
|
import {checkImageUrl} from '@/utils/index.js'
|
||||||
|
|
||||||
export const haloWxShareMixin = {
|
export const haloWxShareMixin = {
|
||||||
computed: {
|
computed: {
|
||||||
haloWxShareData() {
|
haloWxShareData() {
|
||||||
const configs = this.$tm.vx.getters().getConfigs;
|
const configs = this.$tm.vx.getters().getConfigs?.shareConfig;
|
||||||
return configs?.shareConfig || {}
|
if(!configs) return {};
|
||||||
|
configs.imageUrl = checkImageUrl(configs.imageUrl)
|
||||||
|
return configs
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//#ifdef MP-WEIXIN
|
//#ifdef MP-WEIXIN
|
||||||
|
Loading…
Reference in New Issue
Block a user