|
@@ -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}`)) {
|
|
|
// 如果不存在文件夹,就创建
|