|
|
@@ -1,12 +1,20 @@
|
|
|
export default function (context) {
|
|
|
- if (!process.server) {
|
|
|
+ if (process.server) {
|
|
|
return
|
|
|
}
|
|
|
- const {kaifainUrl} = context.store.state.domainConfig
|
|
|
- const { req:{headers:{host}} } = context;
|
|
|
-
|
|
|
+ const {
|
|
|
+ kaifainUrl
|
|
|
+ } = context.store.state.domainConfig
|
|
|
+ const {
|
|
|
+ req: {
|
|
|
+ headers: {
|
|
|
+ host
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } = context;
|
|
|
+
|
|
|
console.log("********", host, kaifainUrl)
|
|
|
if (kaifainUrl.indexOf(host) !== -1) {
|
|
|
-
|
|
|
+
|
|
|
}
|
|
|
}
|