App.vue和main.js
<template> <div id="app"> <router-view/> </div> </template> <style lang="less"> #app { font-family: Avenir, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-align : left; color: #2c3e50; } nav { padding: 30px; a { font-weight: bold; color: #2c3e50; &.router-link-exact-active { color: #42b983; } } } </style>
import Vue from 'vue' import App from './App.vue' import router from './router' import * as echarts from 'echarts'; import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css'; Vue.config.productionTip = false Vue.use(ElementUI) Vue.use(echarts) new Vue({ router, render: h => h(App) }).$mount('#app')
标签:Vue,color,App,家庭,记账,router,import,font From: https://www.cnblogs.com/daniel350-wang/p/18036623