提交 0ba2a581 编写于 作者: guangjun.yang's avatar guangjun.yang

报错问题等

上级 4753722e
......@@ -126,6 +126,7 @@ export default {
}
}
.nav-top {
font-size: 18px;
height: 56px;
// margin-top: 20px;
padding-top: 20px;
......
......@@ -31,9 +31,9 @@ export default {
created() {
if (process.client) {
var _this = this;
window.__getUserInfo = function(param) {
window.__getUserInfoInProList = function(param) {
console.log('$$$$$', JSON.stringify(param));
// _this.token = param.userToken;
_this.token = param.userToken;
cookies.set("lreporttoken", _this.token);
_this.getProjectList();
};
......@@ -52,9 +52,9 @@ export default {
methods: {
// 与原生交互,获取用户信息
getUserInfo() {
!this.$rocNative.isWeb && this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo().then(params => {
console.log('#####', JSON.stringify(param));
console.log('#####', JSON.stringify(params));
this.token = params.userToken;
cookies.set("lreporttoken", _this.token);
this.getProjectList();
......
......@@ -2,16 +2,16 @@ import Vue from 'vue'
import rocNative from '@/utils/jsbridge'
import echarts from 'echarts'
import { Toast } from 'vant';
import { BASE_URL } from '@/utils/enumerate';
import WebBuriedPoint, { sendBuriedData } from 'web-buried-point';
// import { BASE_URL } from '@/utils/enumerate';
// const { NUXT_ENV_APP } = process.env;
// import WebBuriedPoint, { sendBuriedData } from 'web-buried-point';
// Vue.use(WebBuriedPoint, {
// class_name: `learning_report`,
// url: `${BASE_URL[NUXT_ENV_APP]}/file/log/trace1`
// });
const { NUXT_ENV_APP } = process.env;
Vue.use(WebBuriedPoint, {
class_name: `learning_report`,
url: `${BASE_URL[NUXT_ENV_APP]}/file/log/trace1`
});
// Vue.prototype.$sendBuriedData = sendBuriedData;
Vue.prototype.$sendBuriedData = sendBuriedData;
Vue.use(Toast);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册