import App from "./App";

import store from "./store";
Vue.prototype.$store = store;




// uView配置
import uView from "@/uni_modules/uview-ui";
Vue.use(uView);
uni.$u.config.unit = "rpx";

// Vue.prototype.apiUrl = "http://10.34.48.105:81";
// Vue.prototype.apiUrl = "http://192.168.1.100:9090";
// #ifdef APP-PLUS
Vue.prototype.apiUrl = "";
// const apiInfo = uni.getStorageSync("apiInfo");

// Vue.prototype.apiWebUrl = `${apiInfo.protocal}${apiInfo.hostname}:${apiInfo.port}/api`;
// Vue.prototype.apiUrl = `${apiInfo.protocal}${apiInfo.hostname}:${apiInfo.port}/api`;
// 测试
// Vue.prototype.apiWebUrl = ''
// Vue.prototype.apiUrl = "http://192.168.3.35:8080/api";
// Vue.prototype.apiWebUrl = "http://192.168.3.51:18086/api"; //本地测试
// Vue.prototype.apiUrl = 'http://192.168.3.38:8601/api'   //本地测试
// Vue.prototype.apiWebUrl = 'http://124.71.68.31:81/api'
// Vue.prototype.apiUrl = 'http://124.71.68.31:81/api'
// 生产
/* Vue.prototype.apiWebUrl = 'http://10.34.48.105:81/web';
Vue.prototype.apiUrl = 'http://10.34.48.105:81/api'; */

// 测试
// Vue.prototype.apiWebUrl = 'http://192.168.3.19:8601';
// Vue.prototype.apiUrl = 'http://192.168.3.19:8601';
// #endif

// #ifdef H5
Vue.prototype.apiUrl = "/api";
Vue.prototype.apiWebUrl = "/web";
// Vue.prototype.apiWebUrl = 'http://192.168.3.19:8601/web';
// Vue.prototype.apiUrl = 'http://192.168.3.19:8601/api';

// Vue.prototype.apiWebUrl = 'http://10.34.48.105:80/web';
// Vue.prototype.apiUrl = 'http://10.34.48.105:80/api';
// #endif

// #ifndef VUE3
import Vue from "vue";
import "./utils/minxin.js";
Vue.config.productionTip = false;
App.mpType = "app";
const app = new Vue({
  ...App,
  store,
});
app.$mount();
// #endif







// #ifdef VUE3
import { createSSRApp } from "vue";
export function createApp() {
  const app = createSSRApp(App);
  app.use(store);
  return {
    app,
  };
}
// #endif
  