import Login from ‘./Login‘ export default { install: function(Vue){ Vue.component(‘Login‘, Login); } }
// The Vue build version to load with the `import` command // (runtime-only or standalone) has been set in webpack.base.conf with an alias. import Vue from ‘vue‘ import App from ‘./App‘ import Login from ‘@/components/common/login‘ //import store from ‘./store‘ import store from ‘@/store‘ Vue.use(Login) Vue.config.productionTip = false /* eslint-disable no-new */ new Vue({ el: ‘#app‘, store, components: { App }, template: ‘<App/>‘ })
原文地址:https://www.cnblogs.com/ivan5277/p/11026854.html
时间: 2024-11-02 23:02:28