|
@@ -16,7 +16,9 @@ import authSelection from '@/components/authSelection';
|
|
|
Vue.component('HeaderTitle', HeaderTitle);
|
|
Vue.component('HeaderTitle', HeaderTitle);
|
|
|
Vue.component('authSelection', authSelection);
|
|
Vue.component('authSelection', authSelection);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
|
+import clickOnce from './utils/clickOnce.js';
|
|
|
|
|
+// 注册全局自定义指令
|
|
|
|
|
+Vue.directive('click-once', clickOnce);
|
|
|
|
|
|
|
|
// bpmnProcessDesigner 需要引入
|
|
// bpmnProcessDesigner 需要引入
|
|
|
import MyPD from '@/components/bpmnProcessDesigner/package/index.js';
|
|
import MyPD from '@/components/bpmnProcessDesigner/package/index.js';
|
|
@@ -27,7 +29,6 @@ import 'bpmn-js/dist/assets/bpmn-font/css/bpmn.css';
|
|
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
|
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-codes.css';
|
|
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
|
|
import 'bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css';
|
|
|
|
|
|
|
|
-
|
|
|
|
|
// // register globally
|
|
// // register globally
|
|
|
import '@/icons';
|
|
import '@/icons';
|
|
|
Vue.component('DictSelection', DictSelection);
|
|
Vue.component('DictSelection', DictSelection);
|
|
@@ -45,7 +46,7 @@ Vue.use(permission);
|
|
|
Vue.use(VueClipboard);
|
|
Vue.use(VueClipboard);
|
|
|
let instance = null;
|
|
let instance = null;
|
|
|
|
|
|
|
|
-function render (props = {}) {
|
|
|
|
|
|
|
+function render(props = {}) {
|
|
|
const { container, routerBase } = props;
|
|
const { container, routerBase } = props;
|
|
|
// const router = new VueRouter({
|
|
// const router = new VueRouter({
|
|
|
// base: window.__POWERED_BY_QIANKUN__ ? routerBase : process.env.BASE_URL,
|
|
// base: window.__POWERED_BY_QIANKUN__ ? routerBase : process.env.BASE_URL,
|
|
@@ -66,11 +67,11 @@ if (!window.__POWERED_BY_QIANKUN__) {
|
|
|
render();
|
|
render();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export async function bootstrap () {
|
|
|
|
|
|
|
+export async function bootstrap() {
|
|
|
console.log('[vue] vue app bootstraped');
|
|
console.log('[vue] vue app bootstraped');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export async function mount (props) {
|
|
|
|
|
|
|
+export async function mount(props) {
|
|
|
console.log('[vue] props from main framework', props);
|
|
console.log('[vue] props from main framework', props);
|
|
|
Vue.prototype.$portalStore = props.store;
|
|
Vue.prototype.$portalStore = props.store;
|
|
|
|
|
|
|
@@ -83,7 +84,7 @@ export async function mount (props) {
|
|
|
render(props);
|
|
render(props);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-export async function unmount () {
|
|
|
|
|
|
|
+export async function unmount() {
|
|
|
instance.$destroy();
|
|
instance.$destroy();
|
|
|
instance.$el.innerHTML = '';
|
|
instance.$el.innerHTML = '';
|
|
|
instance = null;
|
|
instance = null;
|