摘要:
import Vue from 'vue' import Vuex from 'vuex' import axaios from 'axios' import createPersistedState from "vuex-persistedstate" //将数据持久化, 此方法就是将store中 阅读全文
摘要:
@font-face{ font-family: '字体name'; src: url('../font/本地字体.eot'); src: url('../font/本地字体.eot?#iefix') format('embedded-opentype'), url('../font/本地字体.tt 阅读全文
摘要:
在组件的index.js文件中export出组件 组件 import Component from './Component ' const MyComponent= { install: function(Vue){ Vue.component('MyComponent',Component ) 阅读全文
摘要:
import axios from 'axios'; import router from '../router' axios.interceptors.request.use( config => { if (localStorage.getItem("token")) { //统一将token带 阅读全文
摘要:
git clone path git pull git mv old_foldername new_foldername 修改文件夹名字, 尽量使用git改文件名或者文件夹名称,否则会导致很多问题 git push orign localBranch:originBranch //根据本地分支新建一 阅读全文
摘要:
function isEmpty(v) { switch (typeof v) { case 'undefined': return true; case 'string': if (v.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0) 阅读全文