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