木邻有你前端代码仓库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
508 B

  1. export default {
  2. computed: {
  3. // 获取全局配置的文本
  4. configParamText() {
  5. return key => this.$store.state.configList[key].paramText || '默认文本'
  6. },
  7. // 获取全局配置的图片
  8. configParamImage() {
  9. return key => this.$store.state.configList[key].paramImage || '/static/默认图片.png'
  10. },
  11. // 获取全局配置的富文本
  12. configParamTextarea() {
  13. return key => this.$store.state.configList[key].paramTextarea || '默认富文本'
  14. }
  15. }
  16. }