import { createApp } from "vue";
// import store from "../src/store/index";
import App from "./App.vue";
import router from "./router/index";
// import axios from 'axios'
import TDesign from "tdesign-mobile-vue";
// 引入组件库的少量全局样式变量
import "tdesign-mobile-vue/es/style/index.css";
import "amfe-flexible/index.js";
// 引入公共样式与变量   // 引入公共样式方式1
// import "./style/index.scss";
const app = createApp(App);
app.use(TDesign);
app.use(router);
// app.use(store);

// app.mount("#app");

app.mount('#app')
// axios.get('./config/config.json').then((result) => {
//   console.log('get config')
//   console.log(result)
//   // request.defaults.baseURL = result.data.baseUrl // 设置默认请求网址
//   // app.config.globalProperties.config = result.data
//   window.sessionStorage.setItem('baseURL', result.data.baseUrl)
//   app.mount('#app')
// }).catch((error) => {
//   console.error(`get baseConfig error...${error}`)
// })