From 7674435b8e9ce26b16d974c15616f21bf857d5d8 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Sun, 5 Mar 2023 18:48:34 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=88=20style:=20=E6=95=B4=E7=90=86?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/index.js | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/model/index.js b/model/index.js index de078d9..6f35a0d 100644 --- a/model/index.js +++ b/model/index.js @@ -13,7 +13,11 @@ class RConfig { this.watcher = { config: {} } } - // 获取配置文件 + /** + * 获取配置文件 + * @param name + * @returns {any} + */ getConfig (name) { let ignore = [] @@ -25,11 +29,9 @@ class RConfig { } /** - * 获取配置yaml - * @param app 功能 - * @param name 名称 - * @param type 默认跑配置-defSet,用户配置-config - */ + * 获取配置yaml + * @param name 名称 + */ getYaml (name) { // 获取文件路径 let file = this.getFilePath(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) {