会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
河畔的风
博客园
::
首页
::
博问
::
闪存
::
新随笔
::
联系
::
订阅
::
管理
::
公告
2020年5月11日
关于应用vue Store
摘要: import Vue from 'vue' import Vuex from 'vuex' import axaios from 'axios' import createPersistedState from "vuex-persistedstate" //将数据持久化, 此方法就是将store中
阅读全文
posted @ 2020-05-11 12:59 河畔的风
阅读(368)
评论(0)
推荐(0)
关于引用本地字体
摘要: @font-face{ font-family: '字体name'; src: url('../font/本地字体.eot'); src: url('../font/本地字体.eot?#iefix') format('embedded-opentype'), url('../font/本地字体.tt
阅读全文
posted @ 2020-05-11 11:35 河畔的风
阅读(352)
评论(0)
推荐(0)
公共组件
摘要: 在组件的index.js文件中export出组件 组件 import Component from './Component ' const MyComponent= { install: function(Vue){ Vue.component('MyComponent',Component )
阅读全文
posted @ 2020-05-11 11:24 河畔的风
阅读(169)
评论(0)
推荐(0)
关于vue axios设定
摘要: import axios from 'axios'; import router from '../router' axios.interceptors.request.use( config => { if (localStorage.getItem("token")) { //统一将token带
阅读全文
posted @ 2020-05-11 10:45 河畔的风
阅读(199)
评论(0)
推荐(0)
关于一下常用的git命令
摘要: 可能会有的时候遇到切换git账号的问题 老的git需要修改电脑上验证凭证 git clone path git pull git mv old_foldername new_foldername 修改文件夹名字, 尽量使用git改文件名或者文件夹名称,否则会导致很多问题 git push orign
阅读全文
posted @ 2020-05-11 10:31 河畔的风
阅读(143)
评论(0)
推荐(0)
判断字段是否为空
摘要: function isEmpty(v) { switch (typeof v) { case 'undefined': return true; case 'string': if (v.replace(/(^[ \t\n\r]*)|([ \t\n\r]*$)/g, '').length == 0)
阅读全文
posted @ 2020-05-11 10:17 河畔的风
阅读(319)
评论(0)
推荐(0)