twt hace 2 años
commit
1b7db09be9
Se han modificado 1 ficheros con 34 adiciones y 0 borrados
  1. 34 0
      main.js

+ 34 - 0
main.js

@@ -0,0 +1,34 @@
+import App from './App'
+
+// #ifndef VUE3
+import Vue from 'vue'
+Vue.config.productionTip = false
+App.mpType = 'app'
+
+
+import signature from 'utils/signature.js'
+import store from './store'
+Vue.prototype.$store = store // 定义成全局组件
+import request from 'utils/request.js'
+Vue.prototype.$http = request.http
+Vue.prototype.$fetchPost = request.fetchPost
+Vue.prototype.$baseURL = request.baseURL
+Vue.prototype.$getHashQuery=signature.getHashQuery
+
+const app = new Vue({
+    ...App
+})
+app.$mount()
+// #endif
+
+// #ifdef VUE3
+
+
+
+export function createApp() {
+  const app = createSSRApp(App)
+  return {
+    app
+  }
+}
+// #endif