main.js 599 Bytes
Newer Older
朱国瑞's avatar
朱国瑞 committed
1 2 3 4
import { createApp } from 'vue'
import App from './App.vue'
import './index.css'
import './styles/index.scss' // global css
朱国瑞's avatar
朱国瑞 committed
5
import './assets/font/index.css';
朱国瑞's avatar
朱国瑞 committed
6 7
import router from './router'
import 'amfe-flexible'
朱国瑞's avatar
朱国瑞 committed
8
// import 'schofe-flexible'
朱国瑞's avatar
朱国瑞 committed
9 10 11 12 13 14 15 16 17 18 19
import i18n from './lang/i18n.js'

const app = createApp(App); // 挂载

import axios from 'axios';
// axios.defaults.baseURL = config.api_url; // 设置了主域名则接口就不需要+了
axios.defaults.withCredentials = false; // 跨域设置,false忽略跨域cookies(Access-Control-Allow-Headers:*)

app.use(router)
app.use(i18n)
app.mount('#app')