浏览代码

fix:手动创建信息价库,期数缺失分割符“-”

vian 5 年之前
父节点
当前提交
2bfc308c89
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/price_info_lib/facade/index.js

+ 1 - 1
modules/price_info_lib/facade/index.js

@@ -16,7 +16,7 @@ async function getLibs(query) {
 async function createLib(name, period, compilationID) {
     // 将2020-01变成2020年01月
     const reg = /(\d{4})-(\d{2})/;
-    const formattedPeriod = period.replace(reg, '$1年$2月');
+    const formattedPeriod = period.replace(reg, '$1年-$2月');
     const lib = {
         ID: uuidV1(),
         name,