mirror of
https://github.com/Jerryplusy/crystelf-plugin.git
synced 2025-07-04 14:19:19 +00:00
优化
This commit is contained in:
parent
ddc4060caf
commit
e5929d9268
5
constants/relativelyPath.js
Normal file
5
constants/relativelyPath.js
Normal file
@ -0,0 +1,5 @@
|
||||
const relativelyPath = {
|
||||
config: '/data/crystelf/config.json',
|
||||
};
|
||||
|
||||
export default relativelyPath;
|
@ -2,10 +2,11 @@ import Path, { defaultConfig } from '../../constants/path.js';
|
||||
import fc from '../../components/json.js';
|
||||
import path from 'path';
|
||||
import fs from 'fs';
|
||||
import relativelyPath from '../../constants/relativelyPath.js';
|
||||
|
||||
const configPath = Path.config;
|
||||
const configFile = path.join(configPath, 'config.json');
|
||||
const configDir = 'data/crystelf/config.json';
|
||||
const configDir = relativelyPath.config;
|
||||
|
||||
let configCache = {};
|
||||
let lastModified = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user