Open fengzhiqiang012 opened 5 years ago
main.js 发一下
解决了,少了个依赖 感谢感谢
同问少了什么依赖
main.js 发一下
解决了,少了个依赖 感谢感谢
同问少了什么依赖
不记得了,好久远的问题了, 这年代不合适用mpvue了, 兄弟 建议用别的
main.js 发一下
解决了,少了个依赖 感谢感谢
同问少了什么依赖
不记得了,好久远的问题了, 这年代不合适用mpvue了, 兄弟 建议用别的
好的 谢谢 我是用原生的,接手别人一个mpvue的项目,配置都整半天...
main.js 发一下
解决了,少了个依赖 感谢感谢
同问少了什么依赖
不记得了,好久远的问题了, 这年代不合适用mpvue了, 兄弟 建议用别的
好的 谢谢 我是用原生的,接手别人一个mpvue的项目,配置都整半天... 下面是我之前的main.js
import Vue from 'vue' import MpvueRouterPatch from 'mpvue-router-patch' import App from '@/App' import store from '@/store'
//全局变量 import prototype from '../src/js/prototype'
//全局组件 import headComponent from "./components/global/headComponent"; import footComponent from "./components/global/footComponent"; import transparentHead from "./components/global/transparentHead"; import message from "./components/global/message";
//全局常量 import '@/js/prototype'
Vue.use(MpvueRouterPatch) Vue.use(prototype) Vue.config.productionTip = false //mockjs import useMock from './mock/mock' useMock(false)
//mixins /import mixins from "./js/mixins"; console.log(27, mixins) Vue.mixin({ mounted(){ console.log('666') } })/
Vue.component('headComponent', headComponent) Vue.component('footComponent', footComponent) Vue.component('transparentHead', transparentHead) Vue.component('message', message)
const app = new Vue({ mpType: 'app', store, ...App }) app.$mount()
megalo 总感觉编译很慢