|
@@ -14,20 +14,17 @@ const { iframeSDK, requestSDK, postMsgUtil } = sdk;
|
|
|
Vue.prototype.$iframeSDK = iframeSDK;
|
|
|
Vue.prototype.$requestSDK = requestSDK;
|
|
|
Vue.prototype.$postMsgUtil = postMsgUtil;
|
|
|
-
|
|
|
+// echarts
|
|
|
+import echarts from 'echarts'
|
|
|
+Vue.prototype.echarts = echarts
|
|
|
Vue.use(Element, { size: "small" });
|
|
|
-Vue.prototype.isCross = true
|
|
|
|
|
|
-localStorage.setItem("isCross", true)
|
|
|
|
|
|
// 监听父页面的发送事件
|
|
|
-localStorage.setItem('isCross', true)
|
|
|
-postMsgUtil.listen("checkCrossResult", function (data) {
|
|
|
- console.log("datadatadata===", data);
|
|
|
- Vue.prototype.isCross = data != 200;
|
|
|
- localStorage.setItem("isCross", data !== 200)
|
|
|
-})
|
|
|
-
|
|
|
+postMsgUtil.listen("checkCrossResult", function ({data}) {
|
|
|
+ Vue.prototype.isCross = data !== 200
|
|
|
+ localStorage.setItem('isCross', data !== 200)
|
|
|
+});
|
|
|
new Vue({
|
|
|
router,
|
|
|
render: h => h(App),
|