Commit 6e8d278b by crushh

udpate: dist

parent db4bccce
.DS_Store
node_modules
/dist
# local env files
.env.local
......
li{display:inline-block;padding:0 20px;cursor:pointer}a,abbr,acronym,address,applet,article,aside,audio,b,big,blockquote,body,canvas,caption,center,cite,code,dd,del,details,dfn,div,dl,dt,em,embed,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,header,html,i,iframe,img,input,ins,kbd,label,legend,li,mark,menu,nav,object,ol,output,p,pre,q,ruby,s,samp,section,small,span,strike,strong,sub,summary,sup,table,tbody,td,textarea,tfoot,th,thead,time,tr,tt,u,ul,var,video{margin:0;padding:0;border:0;font-size:100%;font-weight:400;vertical-align:baseline;font-family:Helvetica Neue,Helvetica,PingFang SC,Hiragino Sans GB,Microsoft YaHei,微软雅黑,Arial,sans-serif}article,aside,details,figcaption,figure,footer,header,menu,nav,section{display:block}body{line-height:1!important}blockquote,q{quotes:none}blockquote:after,blockquote:before,q:after,q:before{content:none}table{border-collapse:collapse;border-spacing:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}input[type=number]{-moz-appearance:textfield}a{color:#606266;text-decoration:none;-webkit-backface-visibility:hidden}li{list-style:none}::-webkit-scrollbar-thumb{background-color:#e4e7ed;height:50px;-webkit-border-radius:6px}::-webkit-scrollbar-thumb:hover{background-color:#c8cbd3;height:50px;-webkit-border-radius:6px}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track-piece{background-color:#f0f2f5;-webkit-border-radius:6px}body,html{width:100%;min-height:100%;height:100%;background-color:#f2f3f4}body{-webkit-text-size-adjust:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}input:focus{box-shadow:none;outline:none}.dialogcontent{padding:0 10px}input:-webkit-autofill,select:-webkit-autofill,textarea:-webkit-autofill{background-color:#fff!important;background-image:none;color:#000}#app,#content,#index{height:100%}#index{min-width:1200px}.tooltip-icon{color:#909399;font-size:14px!important}.tooltip-icon:hover{color:#909399}.total-wrap{width:100%;height:100%;overflow:auto}.footer{padding-bottom:60px}input::-webkit-input-placeholder{font-size:14px}input::-moz-input-placeholder{font-size:14px}input::-ms-input-placeholder{font-size:14px}.el-popper{box-sizing:content-box}
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>qiankun</title><script src="//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/axios/0.18.0/index.min.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/element-ui/2.15.6/index.js"></script><script src="//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js"></script><script src="//web-1251519181.file.myqcloud.com/components/limit.1.0.60.js"></script><script src="//web-1251519181.file.myqcloud.com/components/layout.1.0.58.js"></script><script src="//web-1251519181.file.myqcloud.com/components/sub-title.1.0.8.js"></script><link rel="stylesheet" href="//web-1251519181.file.myqcloud.com/lib/element-ui/2.15.6/index-dm-blue.css"><link href="css/app.bec5e02f.css" rel="preload" as="style"><link href="js/app.5f06dab5.js" rel="preload" as="script"><link href="js/chunk-vendors.c0dfc3b3.js" rel="preload" as="script"><link href="css/app.bec5e02f.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but qiankun doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.c0dfc3b3.js"></script><script src="js/app.5f06dab5.js"></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var o,c,i=t[0],u=t[1],l=t[2],p=0,f=[];p<i.length;p++)c=i[p],Object.prototype.hasOwnProperty.call(r,c)&&r[c]&&f.push(r[c][0]),r[c]=0;for(o in u)Object.prototype.hasOwnProperty.call(u,o)&&(e[o]=u[o]);s&&s(t);while(f.length)f.shift()();return a.push.apply(a,l||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],o=!0,i=1;i<n.length;i++){var u=n[i];0!==r[u]&&(o=!1)}o&&(a.splice(t--,1),e=c(c.s=n[0]))}return e}var o={},r={app:0},a=[];function c(t){if(o[t])return o[t].exports;var n=o[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,c),n.l=!0,n.exports}c.m=e,c.c=o,c.d=function(e,t,n){c.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},c.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.t=function(e,t){if(1&t&&(e=c(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(c.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)c.d(n,o,function(t){return e[t]}.bind(null,o));return n},c.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return c.d(t,"a",t),t},c.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},c.p="";var i=window["webpackJsonp"]=window["webpackJsonp"]||[],u=i.push.bind(i);i.push=t,i=i.slice();for(var l=0;l<i.length;l++)t(i[l]);var s=u;a.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"56d7":function(e,t,n){"use strict";n.r(t);n("e260"),n("e6cf"),n("cca6"),n("a79d");var o=n("8bbf"),r=n.n(o),a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("dm-layout",{attrs:{projectName:e.projectName,basePath:e.basePath,isQiankun:!0}},[n("div",{attrs:{id:"container"}})])],1)},c=[],i=(n("ac1f"),n("1276"),n("7db0"),n("d3b7"),n("b0c0"),n("caad"),n("2532"),[{name:"marketing",entry:"//test.web.demogic.com/marketing",container:"#container",activeRule:"/marketing/"},{name:"report",entry:"//test.web.demogic.com/report",container:"#container",activeRule:"/report/"}]),u=i,l={name:"App",provide:function(){return{reload:this.reload}},data:function(){return{current:"",microApps:u}},created:function(){console.log(window),console.log(window.location.href.split("#"))},computed:{projectName:function(){return this.$store.state.projectName},basePath:function(){var e=this.$store.state.projectName;return console.log(e),console.log(u.find((function(t){return t.name==e}))),u.find((function(t){return t.name==e})).activeRule}},methods:{goto:function(e){e.activeRule.includes("marketing")?history.pushState(null,e.activeRule,"http://localhost:8080/marketing/#/marketing-app-list"):e.activeRule.includes("report")?history.pushState(null,e.activeRule,"http://localhost:8080/report/#/memberSummary"):e.activeRule.includes("member")&&history.pushState(null,e.activeRule,"http://localhost:8080/member/#/allCustomers"),this.current=e.name}}},s=l,p=(n("034f"),n("2877")),f=Object(p["a"])(s,a,c,!1,null,null,null),m=f.exports,d=n("6389"),b=n.n(d),h=n("cebe"),g=n.n(h),v=n("5880"),y=n.n(v);r.a.use(y.a);var j=new y.a.Store({state:{projectName:"report"},mutations:{changeMicoApplication:function(e,t){console.log(t);var n=t.name;e.projectName=n}}}),w=j,O=n("34ac9"),x=n("548a"),k=n("07ec");console.log(w),Object(O["b"])(u,{beforeLoad:function(e){console.log("before load app.name====>>>>>",e.name),w.commit("changeMicoApplication",e)},beforeMount:[function(e){console.log("[LifeCycle] before mount %c%s","color: green;",e.name)}],afterMount:[function(e){console.log("[LifeCycle] after mount %c%s","color: green;",e.name)}],afterUnmount:[function(e){console.log("[LifeCycle] after unmount %c%s","color: green;",e.name)}]}),Object(x["a"])((function(e){return console.log(e)})),Object(k["a"])("/report/"),Object(O["c"])();n("d671");r.a.prototype.axios=g.a,r.a.prototype.axios.defaults.withCredentials=!0,r.a.use(b.a),r.a.config.productionTip=!1;var P="/",R=[],S=new b.a({base:P,routes:R});new r.a({router:S,store:w,render:function(e){return e(m)}}).$mount("#app")},5880:function(e,t){e.exports=Vuex},6389:function(e,t){e.exports=VueRouter},"85ec":function(e,t,n){},"8bbf":function(e,t){e.exports=Vue},cebe:function(e,t){e.exports=axios},d671:function(e,t,n){}});
//# sourceMappingURL=app.5f06dab5.js.map
\ No newline at end of file
{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/App.vue?7e02","webpack:///./src/App.vue?3d32","webpack:///./src/micro-app.js","webpack:///src/App.vue","webpack:///./src/App.vue?1160","webpack:///./src/App.vue","webpack:///./src/store.js","webpack:///./src/qiankun.js","webpack:///./src/main.js","webpack:///external \"Vuex\"","webpack:///external \"VueRouter\"","webpack:///external \"Vue\"","webpack:///external \"axios\""],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","executeModules","i","resolves","length","Object","prototype","hasOwnProperty","call","installedChunks","push","modules","parentJsonpFunction","shift","deferredModules","apply","checkDeferredModules","result","deferredModule","fulfilled","j","depId","splice","__webpack_require__","s","installedModules","exports","module","l","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","p","jsonpArray","window","oldJsonpFunction","slice","_vm","this","_h","$createElement","_c","_self","attrs","projectName","basePath","staticRenderFns","microApps","entry","container","activeRule","provide","reload","current","created","console","computed","methods","goto","item","history","component","Vue","use","Vuex","store","Store","state","mutations","changeMicoApplication","obj","log","registerMicroApps","beforeLoad","app","commit","beforeMount","afterMount","afterUnmount","addGlobalUncaughtErrorHandler","event","setDefaultMountApp","start","axios","defaults","withCredentials","VueRouter","config","productionTip","microName","routes","router","base","render","h","App","$mount"],"mappings":"aACE,SAASA,EAAqBC,GAQ7B,IAPA,IAMIC,EAAUC,EANVC,EAAWH,EAAK,GAChBI,EAAcJ,EAAK,GACnBK,EAAiBL,EAAK,GAIHM,EAAI,EAAGC,EAAW,GACpCD,EAAIH,EAASK,OAAQF,IACzBJ,EAAUC,EAASG,GAChBG,OAAOC,UAAUC,eAAeC,KAAKC,EAAiBX,IAAYW,EAAgBX,IACpFK,EAASO,KAAKD,EAAgBX,GAAS,IAExCW,EAAgBX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ACnBC,iB,UCrBApB,IAAI5E,UAAUiG,MAAQA,IACtBrB,IAAI5E,UAAUiG,MAAMC,SAASC,iBAAkB,EAC/CvB,IAAIC,IAAIuB,KACRxB,IAAIyB,OAAOC,eAAgB,EAC3B,IAAMC,EAAY,IAEZC,EAAS,GACTC,EAAS,IAAIL,IAAU,CAC3BM,KAAMH,EACNC,WAIF,IAAI5B,IAAI,CACN6B,SACA1B,QACA4B,OAAQ,SAAAC,GAAC,OAAIA,EAAEC,MACdC,OAAO,S,mBCzBVzF,EAAOD,QAAU0D,M,mBCAjBzD,EAAOD,QAAUgF,W,8CCAjB/E,EAAOD,QAAUwD,K,mBCAjBvD,EAAOD,QAAU6E,O","file":"js/app.5f06dab5.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n \t\tvar executeModules = data[2];\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t\t// add entry modules from loaded chunk to deferred list\n \t\tdeferredModules.push.apply(deferredModules, executeModules || []);\n\n \t\t// run deferred modules when all chunks ready\n \t\treturn checkDeferredModules();\n \t};\n \tfunction checkDeferredModules() {\n \t\tvar result;\n \t\tfor(var i = 0; i < deferredModules.length; i++) {\n \t\t\tvar deferredModule = deferredModules[i];\n \t\t\tvar fulfilled = true;\n \t\t\tfor(var j = 1; j < deferredModule.length; j++) {\n \t\t\t\tvar depId = deferredModule[j];\n \t\t\t\tif(installedChunks[depId] !== 0) fulfilled = false;\n \t\t\t}\n \t\t\tif(fulfilled) {\n \t\t\t\tdeferredModules.splice(i--, 1);\n \t\t\t\tresult = __webpack_require__(__webpack_require__.s = deferredModule[0]);\n \t\t\t}\n \t\t}\n\n \t\treturn result;\n \t}\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t\"app\": 0\n \t};\n\n \tvar deferredModules = [];\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// add entry module to deferred list\n \tdeferredModules.push([0,\"chunk-vendors\"]);\n \t// run deferred modules when ready\n \treturn checkDeferredModules();\n","export * from \"-!../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=style&index=0&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('dm-layout',{attrs:{\"projectName\":_vm.projectName,\"basePath\":_vm.basePath,\"isQiankun\":true}},[_c('div',{attrs:{\"id\":\"container\"}})])],1)}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\r\n// const getActiveRule = (hash) => (location) => location.hash.startsWith(hash);\r\nconst microApps = [\r\n {\r\n name: 'marketing',\r\n entry: process.env.NODE_ENV === 'production' ? '//test.web.demogic.com/marketing' : '//localhost:8001/marketing/',\r\n container: '#container',\r\n activeRule: '/marketing/',\r\n },\r\n {\r\n name: 'report',\r\n entry: process.env.NODE_ENV === 'production' ? '//test.web.demogic.com/report' : '//localhost:8003/report/',\r\n container: '#container',\r\n activeRule: '/report/',\r\n },\r\n // {\r\n // name: 'member',\r\n // entry: process.env.NODE_ENV === 'production' ? '//test.web.demogic.com/member' : '//localhost:8002/member/',\r\n // container: '#container',\r\n // activeRule: '/member/',\r\n // },\r\n];\r\n\r\nexport default microApps;\r\n","<template>\n<div>\n <dm-layout :projectName=\"projectName\" :basePath=\"basePath\" :isQiankun=\"true\">\n <div id=\"container\"></div>\n </dm-layout>\n</div>\n</template>\n<script>\nimport microApps from './micro-app';\nexport default {\n name: 'App',\n provide () {\n // 刷新本页面\n return {\n reload: this.reload,\n };\n },\n data () {\n return {\n current:'',\n microApps,\n \n };\n },\n created(){\n console.log(window)\n console.log( window.location.href.split('#'))\n },\n computed:{\n projectName(){\n return this.$store.state.projectName\n },\n basePath(){\n let appName = this.$store.state.projectName\n console.log(appName)\n console.log(microApps.find(item=>item.name==appName))\n return microApps.find(item=>item.name==appName).activeRule\n }\n },\n methods: {\n goto (item) {\n if(item.activeRule.includes('marketing')){\n history.pushState(null, item.activeRule,`http://localhost:8080/marketing/#/marketing-app-list`)\n // window.location.href = '/marketing';\n \n }else if(item.activeRule.includes('report')){\n history.pushState(null, item.activeRule,`http://localhost:8080/report/#/memberSummary`)\n // window.location.href = '/report';\n }else if(item.activeRule.includes('member')){\n history.pushState(null, item.activeRule,`http://localhost:8080/member/#/allCustomers`)\n // window.location.href = '/member';\n }\n \n // window.location.href = `http://localhost:8080/marketing/#/marketing-app-list`;\n this.current = item.name\n },\n },\n};\n</script>\n<style>\n li{\n list-style: none;\n display: inline-block;\n padding: 0 20px;\n cursor: pointer;\n\n }\n</style>\n","import mod from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../node_modules/cache-loader/dist/cjs.js??ref--12-0!../node_modules/thread-loader/dist/cjs.js!../node_modules/babel-loader/lib/index.js!../node_modules/cache-loader/dist/cjs.js??ref--0-0!../node_modules/vue-loader/lib/index.js??vue-loader-options!./App.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./App.vue?vue&type=template&id=2d86e1bf&\"\nimport script from \"./App.vue?vue&type=script&lang=js&\"\nexport * from \"./App.vue?vue&type=script&lang=js&\"\nimport style0 from \"./App.vue?vue&type=style&index=0&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","import Vuex from 'vuex'\r\nimport Vue from 'vue'\r\n\r\nVue.use(Vuex)\r\n\r\nconst store = new Vuex.Store({\r\n state: {\r\n projectName: 'report',\r\n },\r\n mutations: {\r\n changeMicoApplication (state,obj) {\r\n console.log(obj)\r\n const {name } = obj;\r\n state.projectName = name;\r\n }\r\n }\r\n })\r\nexport default store;","import microApps from './micro-app';\r\nimport store from './store';\r\nimport { registerMicroApps, start, addGlobalUncaughtErrorHandler,setDefaultMountApp } from 'qiankun';\r\n\r\nconsole.log(store)\r\nregisterMicroApps(microApps, {\r\n beforeLoad: app => {\r\n console.log('before load app.name====>>>>>', app.name);\r\n store.commit('changeMicoApplication',app)\r\n },\r\n beforeMount: [\r\n app => {\r\n console.log('[LifeCycle] before mount %c%s', 'color: green;', app.name);\r\n },\r\n ],\r\n afterMount: [\r\n app => {\r\n console.log('[LifeCycle] after mount %c%s', 'color: green;', app.name);\r\n },\r\n ],\r\n afterUnmount: [\r\n app => {\r\n console.log('[LifeCycle] after unmount %c%s', 'color: green;', app.name);\r\n },\r\n ],\r\n});\r\naddGlobalUncaughtErrorHandler((event) => console.log(event));\r\n\r\nsetDefaultMountApp('/report/')\r\nstart();\r\n","import Vue from 'vue'\nimport App from './App.vue'\nimport VueRouter from 'vue-router';\nimport axios from 'axios';\nimport store from './store'\nimport './qiankun.js';\nimport '@/assets/reset.scss'\n\nVue.prototype.axios = axios;\nVue.prototype.axios.defaults.withCredentials = true;\nVue.use(VueRouter);\nVue.config.productionTip = false\nconst microName = '/'\n \nconst routes = []\nconst router = new VueRouter({\n base: microName,\n routes,\n});\n\n\nnew Vue({\n router,\n store,\n render: h => h(App),\n}).$mount('#app')\n ","module.exports = Vuex;","module.exports = VueRouter;","module.exports = Vue;","module.exports = axios;"],"sourceRoot":""}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment