Commit 1f52784e authored by 郭志伟's avatar 郭志伟

fix: 问题修复

parent 99caac6b
......@@ -18,6 +18,7 @@ config/plugin.local.js
config/plugin.js
config/config.*.js
config/apollo.json
config/apollo.ssr.json
index.js
config/manifest.json
app/view/*
......
......@@ -75,7 +75,7 @@ export default class App {
return new Promise((resolve, reject) => {
router.onReady(() => {
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));
});
});
......
{
"api": {
"apiHost": "https://quantum-blocks-test1.liangkebang.net",
"h5Host": "https://quantum-h5-test1.liangkebang.net",
"opapiHost": "https://opapi-test1.liangkebang.net",
"passportHost": "https://passportapi-test1.liangkebang.net",
"kdspHost": "https://talos-test1.liangkebang.net"
"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/#"
},
"mysql": {
"low_code": {
"host": "172.17.5.9",
"port": 31024,
"host": "undefined",
"port": "undefined",
"username": "qa",
"password": "qatest",
"database": "low_code"
}
},
"redis": {
"port": 31400,
"host": "172.17.5.17",
"port": "undefined",
"host": "undefined",
"password": "",
"db": 0
},
......
{}
\ No newline at end of file
{"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
......@@ -20,7 +20,7 @@ export default (appInfo: EggAppConfig) => {
password: 'ln4^ESq80j4nrTMZ',
db: 0
}
};;
};
return exports;
return {...exports, apollo: {}};
};
......@@ -10,7 +10,7 @@
"dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -r egg-ts-helper/register",
"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",
"tsc": "ets && tsc -p tsconfig.json",
"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