Commit dac741b6 by Hao

add

parent 2d11b02d
...@@ -4,37 +4,6 @@ import Antd from "ant-design-vue"; ...@@ -4,37 +4,6 @@ import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css"; import "ant-design-vue/dist/antd.css";
Vue.use(Antd); Vue.use(Antd);
Vue.config.productionTip = false; Vue.config.productionTip = false;
let router=null; new Vue({
let instance = null; render: (h) => h(shopHome),
function render(props = {}) { }).$mount("#app");
const { container } = props;
// router = new VueRouter({
// base: window.__POWERED_BY_QIANKUN__ ? '/app-vue/' : '/',
// mode: 'history',
// routes,
// });
instance = new Vue({
render: (h) => h(shopHome),
}).$mount(container ? container.querySelector('#app') : '#app');
}
if (!window.__POWERED_BY_QIANKUN__) {
render();
}
export async function bootstrap() {
console.log('[vue] vue app bootstraped');
}
export async function mount(props) {
console.log('[vue] props from main framework', props);
render(props);
}
export async function unmount() {
instance.$destroy();
instance.$el.innerHTML = '';
instance = null;
router = null;
}
// new Vue({
// render: (h) => h(shopHome),
// }).$mount("#app");
<template> <template>
<div id="app"> <div id="app">
<shop-home option="table" :config="config" :shopList="shopList"> <shop-home option="table" :config="config" :shopList="shopList">
<!-- <a-select
v-if="appCode == 'TC00'"
v-model:value="shopId"
placeholder="选择门店"
style="width:200px;margin-right:10px;"
:options="shopList"
@change="shopChange"
></a-select> -->
</shop-home> </shop-home>
</div> </div>
</template> </template>
......
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