...
|
...
|
@@ -9,7 +9,6 @@ const routes = require('../../config/ssr-routes'); |
|
|
const redis = require('../../utils/redis');
|
|
|
const routeEncode = require('../../utils/route-encode');
|
|
|
const {createBundleRenderer} = require('vue-server-renderer');
|
|
|
const rp = require('request-promise');
|
|
|
const logger = global.yoho.logger;
|
|
|
const config = global.yoho.config;
|
|
|
|
...
|
...
|
@@ -39,6 +38,11 @@ const getContext = (req) => { |
|
|
url: req.url,
|
|
|
title: 'BLK2!',
|
|
|
user: req.user,
|
|
|
state: {
|
|
|
yoho: {
|
|
|
context: {}
|
|
|
}
|
|
|
},
|
|
|
env: {
|
|
|
isApp: req.yoho.isApp,
|
|
|
isiOS: req.yoho.isiOS,
|
...
|
...
|
|