Commit 66cfc45c authored by 郭志伟's avatar 郭志伟

fix: 问题修复

parent 2e329cda
...@@ -18,6 +18,7 @@ config/plugin.local.js ...@@ -18,6 +18,7 @@ config/plugin.local.js
config/plugin.js config/plugin.js
config/config.*.js config/config.*.js
config/apollo.json config/apollo.json
config/apollo.ssr.json
index.js index.js
config/manifest.json config/manifest.json
app/view/* app/view/*
......
...@@ -75,7 +75,7 @@ export default class App { ...@@ -75,7 +75,7 @@ export default class App {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
router.onReady(() => { router.onReady(() => {
this.fetch(vm).then(() => { this.fetch(vm).then(() => {
context.state = {...store.state, apollo: context.state.apollo}; context.state = {...store.state, apollo: context.state.apollo || {}};
return resolve(new Vue(vm)); return resolve(new Vue(vm));
}); });
}); });
......
{ {
"api": { "api": {
"apiHost": "https://quantum-blocks-test1.liangkebang.net", "apiHost": "https://quantum-blocks-undefined.liangkebang.net",
"h5Host": "https://quantum-h5-test1.liangkebang.net", "h5Host": "https://quantum-h5-undefined.liangkebang.net",
"opapiHost": "https://opapi-test1.liangkebang.net", "opapiHost": "https://opapi-undefined.liangkebang.net",
"passportHost": "https://passportapi-test1.liangkebang.net", "passportHost": "https://passportapi-undefined.liangkebang.net",
"kdspHost": "https://talos-test1.liangkebang.net" "kdspHost": "https://talos-undefined.liangkebang.net",
"loginUrl": "",
"h5ShopHost": "https://tenet-undefined.liangkebang.net/#"
}, },
"mysql": { "mysql": {
"low_code": { "low_code": {
"host": "172.17.5.9", "host": "undefined",
"port": 31024, "port": "undefined",
"username": "qa", "username": "qa",
"password": "qatest", "password": "qatest",
"database": "low_code" "database": "low_code"
} }
}, },
"redis": { "redis": {
"port": 31400, "port": "undefined",
"host": "172.17.5.17", "host": "undefined",
"password": "", "password": "",
"db": 0 "db": 0
}, },
......
{} {"apiHost":"https://quantum-blocks-undefined.liangkebang.net","h5Host":"https://quantum-h5-undefined.liangkebang.net","opapiHost":"https://opapi-undefined.liangkebang.net","passportHost":"https://passportapi-undefined.liangkebang.net","kdspHost":"https://talos-undefined.liangkebang.net","loginUrl":"","h5ShopHost":"https://tenet-undefined.liangkebang.net/#","qiniuUpHost":"https://up-z0.qiniup.com","qiniuHost":"https://appsync.lkbang.net"}
\ No newline at end of file \ No newline at end of file
...@@ -20,7 +20,7 @@ export default (appInfo: EggAppConfig) => { ...@@ -20,7 +20,7 @@ export default (appInfo: EggAppConfig) => {
password: 'ln4^ESq80j4nrTMZ', password: 'ln4^ESq80j4nrTMZ',
db: 0 db: 0
} }
};; };
return exports; return {...exports, apollo: {}};
}; };
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"dev": "egg-bin dev -r egg-ts-helper/register", "dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -r egg-ts-helper/register", "debug": "egg-bin debug -r egg-ts-helper/register",
"apollo": "node bin/apollo.js", "apollo": "node bin/apollo.js",
"build": "cross-env COS_ENV=production easy build --devtool", "build": "npm run apollo && cross-env COS_ENV=production easy build --devtool",
"build:test": "cross-env COS_ENV=test easy build --devtool", "build:test": "cross-env COS_ENV=test easy build --devtool",
"tsc": "ets && tsc -p tsconfig.json", "tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean", "clean": "ets clean",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment