You've already forked dev-sidecar
mirror of
https://github.com/docmirror/dev-sidecar.git
synced 2025-11-26 14:10:40 +08:00
refactor: pacpath重构
This commit is contained in:
@@ -8,8 +8,9 @@ function createPacClient (pacFilePath) {
|
||||
|
||||
function readFile (location) {
|
||||
try {
|
||||
log.info('pac root dir', path.resolve('./'))
|
||||
const filePath = path.resolve(location)
|
||||
log.debug('read pac path:', filePath)
|
||||
log.info('read pac path:', filePath)
|
||||
return fs.readFileSync(location).toString()
|
||||
} catch (e) {
|
||||
log.error('读取pac失败')
|
||||
|
||||
Reference in New Issue
Block a user