lrf402788946 4 年之前
父節點
當前提交
097a1146c3
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/dock/patent.js

+ 1 - 1
app/service/dock/patent.js

@@ -15,7 +15,7 @@ class PatentService extends CrudService {
     super(ctx, 'patent');
     this.model = this.ctx.model.Dock.Patent;
     this.root_path = _.get(this.ctx.app.config.export, 'root_path');
-    if (process.env.NODE_ENV !== 'production') this.root_path = 'E:\\exportFile\\';
+    if (process.env.NODE_ENV === 'development') this.root_path = 'E:\\exportFile\\';
     this.file_type = '';
     if (!fs.existsSync(`${this.root_path}${this.file_type}`)) {
       // 如果不存在文件夹,就创建