|
@@ -6,10 +6,7 @@ import store from './store';
|
|
|
import router from './router';
|
|
import router from './router';
|
|
|
import permission from './utils/permission';
|
|
import permission from './utils/permission';
|
|
|
|
|
|
|
|
-import {
|
|
|
|
|
- MAP_KEY,
|
|
|
|
|
- LICENSE_CODE
|
|
|
|
|
-} from '@/config/setting';
|
|
|
|
|
|
|
+import { MAP_KEY, LICENSE_CODE } from '@/config/setting';
|
|
|
import EleAdmin from 'ele-admin';
|
|
import EleAdmin from 'ele-admin';
|
|
|
import VueClipboard from 'vue-clipboard2';
|
|
import VueClipboard from 'vue-clipboard2';
|
|
|
import i18n from './i18n';
|
|
import i18n from './i18n';
|
|
@@ -21,19 +18,18 @@ import TinymceEditor from '@/components/TinymceEditor/index.vue';
|
|
|
// import SvgIcon from '@/components/FormGenerator/components/SvgIcon'; // svg component
|
|
// import SvgIcon from '@/components/FormGenerator/components/SvgIcon'; // svg component
|
|
|
import HeaderTitle from '@/components/header-title';
|
|
import HeaderTitle from '@/components/header-title';
|
|
|
import authSelection from '@/components/authSelection';
|
|
import authSelection from '@/components/authSelection';
|
|
|
-import permissionccc from '@/utils/permissionccc.js'
|
|
|
|
|
|
|
+import permissionccc from '@/utils/permissionccc.js';
|
|
|
|
|
|
|
|
-Vue.directive('permissionccc',permissionccc)
|
|
|
|
|
|
|
+Vue.directive('permissionccc', permissionccc);
|
|
|
Vue.component('HeaderTitle', HeaderTitle);
|
|
Vue.component('HeaderTitle', HeaderTitle);
|
|
|
Vue.component('authSelection', authSelection);
|
|
Vue.component('authSelection', authSelection);
|
|
|
|
|
|
|
|
-
|
|
|
|
|
import Print from 'vue-printjs';
|
|
import Print from 'vue-printjs';
|
|
|
Vue.use(Print);
|
|
Vue.use(Print);
|
|
|
|
|
|
|
|
// 公共搜索文件
|
|
// 公共搜索文件
|
|
|
import seekPage from '@/components/common/seekPage';
|
|
import seekPage from '@/components/common/seekPage';
|
|
|
-Vue.component('seekPage', seekPage)
|
|
|
|
|
|
|
+Vue.component('seekPage', seekPage);
|
|
|
|
|
|
|
|
// // register globally
|
|
// // register globally
|
|
|
Vue.component('tinymce', TinymceEditor);
|
|
Vue.component('tinymce', TinymceEditor);
|
|
@@ -91,10 +87,8 @@ Vue.use(VueClipboard);
|
|
|
let instance = null;
|
|
let instance = null;
|
|
|
|
|
|
|
|
function render(props = {}) {
|
|
function render(props = {}) {
|
|
|
- const {
|
|
|
|
|
- container,
|
|
|
|
|
- routerBase
|
|
|
|
|
- } = props;
|
|
|
|
|
|
|
+ const { container, routerBase, fileMain } = props;
|
|
|
|
|
+ Vue.component('fileMain', fileMain);
|
|
|
// 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,
|
|
|
// mode: 'history',
|
|
// mode: 'history',
|
|
@@ -121,7 +115,7 @@ export async function bootstrap() {
|
|
|
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;
|
|
|
- initParentStore(props.store ?.state);
|
|
|
|
|
|
|
+ initParentStore(props.store?.state);
|
|
|
props.onGlobalStateChange((state, prev) => {
|
|
props.onGlobalStateChange((state, prev) => {
|
|
|
// state: 变更后的状态; prev 变更前的状态
|
|
// state: 变更后的状态; prev 变更前的状态
|
|
|
initParentStore(state);
|
|
initParentStore(state);
|