Blame view

settled-merchant-master/src/main.js 1.19 KB
3f535f30   杨鑫   '初始'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
  // The Vue build version to load with the `import` command
  // (runtime-only or standalone) has been set in webpack.base.conf with an alias.
  import Vue from 'vue'
  import App from './App'
  import router from './router'
  import store from './store'
  // import '@/config/rem' // 配置flex
  import 'normalize.css' // 重置样式表
  import ElementUI from 'element-ui'
  import './../theme/index.css'
  import { Toast } from 'vant'
  // import '@/styles/element-ui-style.css' // 重置样式表
  Vue.use(ElementUI)
  Vue.use(Toast)
  // optionally import default styles
  Vue.prototype.$message = ElementUI.Message
855bef33   杨鑫   '最新版本'
17
18
19
  let host = window.location.host
  if (host === 'localhost:8080' || host === 'localhost:8081' || host === 'localhost:9528' || host === '192.168.31.45:9528' || host === 'localhost:9529') {
    Vue.prototype.$baseURL = 'https://jy.scjysm.asia:18086/cdwlMall'
cff964f8   杨鑫   最新1
20
    // Vue.prototype.$baseURL = `${window.location.protocol}//${window.location.host}/cdwlMall`
855bef33   杨鑫   '最新版本'
21
22
23
  } else {
    Vue.prototype.$baseURL = `${window.location.protocol}//${window.location.host}/cdwlMall`
  }
3f535f30   杨鑫   '初始'
24
25
26
27
28
29
30
31
32
33
34
  // 阻止启动生产消息
  Vue.config.productionTip = false
  
  /* eslint-disable no-new */
  new Vue({
    el: '#app',
    router,
    store,
    components: { App },
    template: '<App/>'
  })