|
|
@@ -1,21 +1,35 @@
|
|
|
import Vue from 'vue'
|
|
|
import { VueRouter } from './router'
|
|
|
import cnzzAnalytics from 'vue-cnzz-analytics'
|
|
|
-let siteid="";
|
|
|
-if(process.env.NODE_ENV!="production")
|
|
|
-{
|
|
|
- siteid=1262086057;
|
|
|
-}
|
|
|
-else
|
|
|
-{
|
|
|
- siteid=1261469621;
|
|
|
+
|
|
|
+
|
|
|
+export default function ({
|
|
|
+ $axios,
|
|
|
+ redirect,
|
|
|
+ req,
|
|
|
+ store,
|
|
|
+ app,
|
|
|
+ ...args
|
|
|
+ }) {
|
|
|
+ let siteid="";
|
|
|
+ if(process.env.NODE_ENV!="production" || store.state.domainConfig.api=="https://dev.test.proginn.com")
|
|
|
+ {
|
|
|
+ siteid=1262086057;
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ siteid=1261469621;
|
|
|
+ }
|
|
|
+ // 启动插件
|
|
|
+ Vue.use(cnzzAnalytics, {
|
|
|
+ router: VueRouter,
|
|
|
+ siteIdList: [
|
|
|
+ siteid
|
|
|
+ ],
|
|
|
+ isDebug: false
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
-// 启动插件
|
|
|
-Vue.use(cnzzAnalytics, {
|
|
|
- router: VueRouter,
|
|
|
- siteIdList: [
|
|
|
- siteid
|
|
|
- ],
|
|
|
- isDebug: false
|
|
|
-});
|
|
|
+
|
|
|
+
|
|
|
+
|