Authored by yyq

extend store

1 -import { isArray } from 'lodash'; 1 +import {get, isArray} from 'lodash';
  2 +import {createStore} from '../store';
2 3
3 export default { 4 export default {
4 install(Vue) { 5 install(Vue) {
@@ -8,6 +9,7 @@ export default { @@ -8,6 +9,7 @@ export default {
8 9
9 function createPromptVM(self) { 10 function createPromptVM(self) {
10 let tpl = Vue.extend({ 11 let tpl = Vue.extend({
  12 + store: createStore(get(window, '__INITIAL_STATE__.yoho.context')),
11 data: function() { 13 data: function() {
12 return { 14 return {
13 type: '', 15 type: '',