Skip to content

请问一个页面如何引用多个store的data #138

@kxbin

Description

@kxbin

例如:

import store1 from 'stores/store1'
import store2 from 'stores/store2'

Page({
  data: {
    d1: store1.data,
    d2: store2.data,
  }

  onLoad() {
    store1.bind(this)
    store2.bind(this)
  },
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions