Commit 2b9a89d2 by xinla

--no commit message

1 parent ab5a390a
......@@ -25,7 +25,7 @@
<!-- </el-scrollbar> -->
</template>
<script>
import { registerMicroApps, start } from 'qiankun'
// import { registerMicroApps, start } from 'qiankun'
export default {
name: 'AppMain',
data() {
......@@ -50,32 +50,32 @@ export default {
// },
},
mounted() {
if (window.lwConfig.MICRO_APPS && window.lwConfig.MICRO_APPS.store) {
// window.Vue2 = window.Vue
// delete window.Vue
window.lwConfig.MICRO_APPS.store.loader = (loading) => (this.loading = loading)
registerMicroApps([window.lwConfig.MICRO_APPS.store], {
beforeLoad: () => (this.isActiveMicroApp = true),
afterUnmount: () => (this.isActiveMicroApp = false),
})
start({
sandbox: { experimentalStyleIsolation: true },
})
// if (window.lwConfig.MICRO_APPS && window.lwConfig.MICRO_APPS.store) {
// // window.Vue2 = window.Vue
// // delete window.Vue
// window.lwConfig.MICRO_APPS.store.loader = (loading) => (this.loading = loading)
// registerMicroApps([window.lwConfig.MICRO_APPS.store], {
// beforeLoad: () => (this.isActiveMicroApp = true),
// afterUnmount: () => (this.isActiveMicroApp = false),
// })
// start({
// sandbox: { experimentalStyleIsolation: true },
// })
// 挂在window供下面微服务使用
window.lwConfig.$store = {
dispatch: (_, s) => {
this.$store.setBusininessDesc(s)
},
}
// // 挂在window供下面微服务使用
// window.lwConfig.$store = {
// dispatch: (_, s) => {
// this.$store.setBusininessDesc(s)
// },
// }
// 初始化 state
// const actions = initGlobalState({ token: getToken() })
// actions.onGlobalStateChange((state, prev) => {
// // state: 变更后的状态; prev 变更前的状态
// });
// actions.setGlobalState(state)
}
// // 初始化 state
// // const actions = initGlobalState({ token: getToken() })
// // actions.onGlobalStateChange((state, prev) => {
// // // state: 变更后的状态; prev 变更前的状态
// // });
// // actions.setGlobalState(state)
// }
// if (window.lwConfig.MICRO_APPS) {
// import('qiankun').then(({ registerMicroApps, start }) => {
// registerMicroApps(window.lwConfig.MICRO_APPS)
......
// RSA加密
import JSEncrypt from 'jsencrypt/bin/jsencrypt.js'
// import JSEncrypt from 'jsencrypt/bin/jsencrypt.js'
import JSEncrypt from 'jsencrypt'
// 密钥对生成 http://web.chacuo.net/netrsakeypair
......
......@@ -227,11 +227,11 @@ export default defineConfig(async ({ command, mode }) => {
// version: '2.1.0',
// path: 'dist/index.iife.min.js',
// },
// {
// name: 'ali-oss',
// var: 'OSS',
// path: 'http://gosspublic.alicdn.com/aliyun-oss-sdk-6.17.1.min.js',
// },
{
name: 'ali-oss',
var: 'OSS',
path: 'https://gosspublic.alicdn.com/aliyun-oss-sdk-6.17.1.min.js',
},
],
}),
rollupPluginVisualizer({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!