提交 e5a05b61 编写于 作者: 张磊's avatar 张磊

for test

上级 b396602d
......@@ -15,7 +15,7 @@ VUE_APP_MOCK_USER_INFO=
VUE_APP_ENCRYPT=false
# 是否开启vConsole
VUE_APP_CONSOLE=
VUE_APP_CONSOLE=true
# appid
VUE_APP_APPID=wx342ef0e5afee54a7
......
......@@ -35,13 +35,10 @@ const WX_TYPE_MAP = {
uat: 30,
prod: 5,
};
const app_env = ['dev', 'test'];
if (app_env.indexOf(process.env.NUXT_ENV_APP) != -1) {
console.log('当前运行环境 NUXT_ENV_APP =>', process.env.NUXT_ENV_APP);
const VConsole = require('vconsole');
new VConsole();
}
// if(process.env.VUE_APP_CONSOLE){
// // const VConsole = require('vconsole');
// // new VConsole();
// }
// Vue.use(PicaCallApp)
Vue.use(PicaGuideApp)
......
......@@ -414,27 +414,21 @@ export default {
originalFlag: 'originalFlag',
}),
},
asyncData() {
return {};
},
created() {
if (process.client) {
this.token =
(this.$route && this.$route.query && this.$route.query.token) ||
this.token;
this.projectId =
(this.$route && this.$route.query && this.$route.query.projectId) ||
374;
this.queryGDParams.projectId = this.projectId;
this.CNTParams.projectId = this.projectId;
this.queryParams.projectId = this.projectId;
if (this.$rocNative.isWeb) {
this.setUserToken(this.token);
cookies.set('lreporttoken', this.token);
this.setProjectId(this.projectId);
} else {
this.getUserInfo();
}
this.token =
(this.$route && this.$route.query && this.$route.query.token) ||
this.token;
this.projectId =
(this.$route && this.$route.query && this.$route.query.projectId) || 374;
this.queryGDParams.projectId = this.projectId;
this.CNTParams.projectId = this.projectId;
this.queryParams.projectId = this.projectId;
if (this.$rocNative.isWeb) {
this.setUserToken(this.token);
cookies.set('lreporttoken', this.token);
this.setProjectId(this.projectId);
} else {
this.getUserInfo();
}
// this.$store.dispatch('searchHospital', { name: '测试' });
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册