Skip to content

Commit

Permalink
修改缓存文件
Browse files Browse the repository at this point in the history
  • Loading branch information
lilinsen committed Jan 24, 2019
1 parent 0ea0feb commit e2a6e60
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ package-lock.json
yarn.lock
docshashCache.text
srchashCache.text
localsrc.cache
localdocs.cache
5 changes: 4 additions & 1 deletion scripts/mdToVue.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,10 @@ function fileReadStar(filedir,callback){
}
/**
* 判断是否位md文件 并进行操作
* 判断文件是否有改动
* @src {string} 打开的文件目录
* @hasobj {obj} hash对象
* @callback {fn} 回调函数
*/
function ismd(src,hasobj,callback){
//判断文件类型是否是md文件
Expand Down Expand Up @@ -180,7 +183,7 @@ function ismd(src,hasobj,callback){
*/
function checkIsexists (path,callback){
let pathFileName = path.replace(/[^a-zA-Z]/g,'');
let cacheName = './'+pathFileName+'hashCache.text';
let cacheName = './local'+pathFileName+'.cache';
fs.exists(cacheName, res=>{
console.log(res)
if(!res){
Expand Down

0 comments on commit e2a6e60

Please sign in to comment.