UNPKG
react-app-shell
Version:
latest (1.0.0)
1.0.0
react打包脚本和example, 这里的版本请忽略
react-app-shell
/
activity
/
src
/
store
/
global-store.js
12 lines
(8 loc)
•
220 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
import
{observable, action}
from
'mobx'
;
class
GlobalStore
{
@observable
promotion_file =
''
;
@action
set_promotion_file =
str
=>
{
this
.
promotion_file
= str; } }
export
default
new
GlobalStore
();