1234567891011121314151617181920212223242526272829303132333435363738394041 |
- 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
- //秘钥 86abc1611b51fef4ddcc0a42eb4b800e wx43160afedef08c4a
- // Vue全局处理undefined和null转为空白字符串
- Vue.prototype.$praseStrEmpty = function(str) {
- if (typeof str === 'undefined' || str === null) {
- return "";
- }
- return str;
- }
|