Showing
1 changed file
with
5 additions
and
1 deletions
@@ -9,7 +9,6 @@ const routes = require('../../config/ssr-routes'); | @@ -9,7 +9,6 @@ const routes = require('../../config/ssr-routes'); | ||
9 | const redis = require('../../utils/redis'); | 9 | const redis = require('../../utils/redis'); |
10 | const routeEncode = require('../../utils/route-encode'); | 10 | const routeEncode = require('../../utils/route-encode'); |
11 | const {createBundleRenderer} = require('vue-server-renderer'); | 11 | const {createBundleRenderer} = require('vue-server-renderer'); |
12 | -const rp = require('request-promise'); | ||
13 | const logger = global.yoho.logger; | 12 | const logger = global.yoho.logger; |
14 | const config = global.yoho.config; | 13 | const config = global.yoho.config; |
15 | 14 | ||
@@ -39,6 +38,11 @@ const getContext = (req) => { | @@ -39,6 +38,11 @@ const getContext = (req) => { | ||
39 | url: req.url, | 38 | url: req.url, |
40 | title: 'BLK2!', | 39 | title: 'BLK2!', |
41 | user: req.user, | 40 | user: req.user, |
41 | + state: { | ||
42 | + yoho: { | ||
43 | + context: {} | ||
44 | + } | ||
45 | + }, | ||
42 | env: { | 46 | env: { |
43 | isApp: req.yoho.isApp, | 47 | isApp: req.yoho.isApp, |
44 | isiOS: req.yoho.isiOS, | 48 | isiOS: req.yoho.isiOS, |
-
Please register or login to post a comment