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";
//import './static/common/common.css';
// import './static/common/theme1.css';// 主题颜色配置
import '../static/common/common.css';
import '../static/common/theme1.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();
    });
}
