vue-apps/com.actionsoft.apps.coe.pal.modelconvert/src/main.ts
2022-09-30 16:40:01 +08:00

28 lines
696 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createApp } from 'vue'
import App from './App.vue'
//import './registerServiceWorker' pwa配置暂时不用
import router from './router'
import store from './store'
/* eslint-disable */
import awsui from "../lib/awsui.es"; //注意awsui组件库根据情况指定路径
import "../lib/awsui.css";
const app = createApp(App);
app.use(store);
app.use(router);
app.use(awsui);
// app.use(ElementPlus, { size: 'small', zIndex: 3000 });
const mountApp = ()=>{
app.mount('#app');
}
const getSid = awsui.getSid;
if(app.config.globalProperties.AWSPageContext.production){
mountApp();
}else{
getSid.exec(app).then(()=>{
mountApp();
});
}