123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import App from './App'
- // #ifndef VUE3
- import Vue from 'vue'
- Vue.config.productionTip = false
- import request from 'common/request.js'
- import common from 'common/common.js'
- Vue.prototype.$http = request.http
- import store from './store'
- Vue.prototype.$store = store // 定义成全局组件
- Vue.prototype.$common =common
- Vue.prototype.$request =request
- App.mpType = 'app'
- const app = new Vue({
- store, //挂载
- ...App
- })
- app.$mount()
- // #endif
- // #ifdef VUE3
- import { createSSRApp } from 'vue'
- export function createApp() {
- const app = createSSRApp(App)
- return {
- app
- }
- }
- // #endif
- //ae3737d4d27ffc8dff0c8f53c5e35b16
- //欧洲维修 AppSecret(小程序密钥):86abc1611b51fef4ddcc0a42eb4b800e AppID(小程序ID):wx43160afedef08c4a
- //66 ae3737d4d27ffc8dff0c8f53c5e35b16 appid wx33053a645546ec31
- // Vue全局处理undefined和null转为空白字符串
- Vue.prototype.$praseStrEmpty = function(str) {
- if (typeof str === 'undefined' || str === null) {
- return "";
- }
- return str;
- }
|