Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Franslee committed Jan 25, 2019
1 parent cfa1122 commit 00c6c9a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions scripts/mdToVue.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('fs');
var path = require('path');
const path = require('path');
//hash获取工具
let { hashElement } = require('folder-hash');
//marked转换工具
Expand Down Expand Up @@ -83,7 +83,7 @@ function createdFile(output, sorce, ishasCode) {
var bufs = `<template><div @click="dsCode">
<div v-if="content" class="layer">
<pre><span class="close-box" @click="closelayer"></span><div v-html="content"></div></pre>
</div>`+ res + `<nut-backtop></nut-backtop></div></template><script>import root from '../root.js';
</div>`+ res + `<nut-backtop :right="50" :bottom="50"></nut-backtop></div></template><script>import root from '../root.js';
export default {
mixins:[root]
}</script>`;
Expand Down Expand Up @@ -187,7 +187,6 @@ function checkIsexists (path,callback){
let pathFileName = path.replace(/[^a-zA-Z]/g,'');
let cacheName = './local'+pathFileName+'.cache';
fs.exists(cacheName, res=>{
console.log(res)
if(!res){
fs.writeFile(cacheName,'','utf8',()=>{
callback(cacheName)
Expand Down

0 comments on commit 00c6c9a

Please sign in to comment.