修改缩进
This commit is contained in:
parent
015f1fc755
commit
313034a3c5
24
src/App.vue
24
src/App.vue
|
@ -1,17 +1,17 @@
|
|||
<script>
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
}
|
||||
}
|
||||
export default {
|
||||
onLaunch: function() {
|
||||
console.log('App Launch')
|
||||
},
|
||||
onShow: function() {
|
||||
console.log('App Show')
|
||||
},
|
||||
onHide: function() {
|
||||
console.log('App Hide')
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
/*每个页面公共css */
|
||||
/*每个页面公共css */
|
||||
</style>
|
||||
|
|
14
src/main.js
14
src/main.js
|
@ -8,18 +8,18 @@ import config from './common/config'
|
|||
import apis from './common/apis'
|
||||
|
||||
Vue.use({
|
||||
install(Vue, options) {
|
||||
Vue.prototype.$utils = utils
|
||||
Vue.prototype.$config = config
|
||||
Vue.prototype.$apis = apis
|
||||
}
|
||||
install(Vue, options) {
|
||||
Vue.prototype.$utils = utils
|
||||
Vue.prototype.$config = config
|
||||
Vue.prototype.$apis = apis
|
||||
}
|
||||
})
|
||||
|
||||
Vue.config.productionTip = false
|
||||
App.mpType = 'app'
|
||||
|
||||
const app = new Vue({
|
||||
store,
|
||||
...App
|
||||
store,
|
||||
...App
|
||||
})
|
||||
app.$mount()
|
||||
|
|
|
@ -6,8 +6,8 @@ import user from "@/store/modules/user"
|
|||
|
||||
Vue.use(Vuex)
|
||||
export default new Vuex.Store({
|
||||
modules: {
|
||||
moduleA,
|
||||
modules: {
|
||||
moduleA,
|
||||
user,
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue