export default { computed: { // 获取全局配置的文本 configParamText() { return key => this.$store.state.configList[key].paramText || '默认文本' }, // 获取全局配置的图片 configParamImage() { return key => this.$store.state.configList[key].paramImage || '/static/默认图片.png' }, // 获取全局配置的富文本 configParamTextarea() { return key => this.$store.state.configList[key].paramTextarea || '默认富文本' } } }