mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🌈 style: 整理注释
This commit is contained in:
parent
fc6a06aacb
commit
7674435b8e
@ -13,7 +13,11 @@ class RConfig {
|
||||
this.watcher = { config: {} }
|
||||
}
|
||||
|
||||
// 获取配置文件
|
||||
/**
|
||||
* 获取配置文件
|
||||
* @param name
|
||||
* @returns {any}
|
||||
*/
|
||||
getConfig (name) {
|
||||
let ignore = []
|
||||
|
||||
@ -26,9 +30,7 @@ class RConfig {
|
||||
|
||||
/**
|
||||
* 获取配置yaml
|
||||
* @param app 功能
|
||||
* @param name 名称
|
||||
* @param type 默认跑配置-defSet,用户配置-config
|
||||
*/
|
||||
getYaml (name) {
|
||||
// 获取文件路径
|
||||
@ -42,9 +44,7 @@ class RConfig {
|
||||
|
||||
/**
|
||||
* 获取文件路径
|
||||
* @param app
|
||||
* @param name
|
||||
* @param type
|
||||
* @returns {string}
|
||||
*/
|
||||
getFilePath (name) {
|
||||
@ -54,9 +54,7 @@ class RConfig {
|
||||
/**
|
||||
* 听配置文件
|
||||
* @param file
|
||||
* @param app
|
||||
* @param name
|
||||
* @param type
|
||||
*/
|
||||
watch (file, name) {
|
||||
const watcher = chokidar.watch(file)
|
||||
@ -68,9 +66,7 @@ class RConfig {
|
||||
|
||||
/**
|
||||
* 保存配置
|
||||
* @param app
|
||||
* @param name
|
||||
* @param type
|
||||
* @param data
|
||||
*/
|
||||
saveSet (name, data) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user