fix: 解决lint问题
This commit is contained in:
parent
bcb41c68fb
commit
ac0216cb64
@ -58,7 +58,5 @@ const readData = async (directory: string): Promise<PackageJson | null> => {
|
|||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
},
|
},
|
||||||
body: JSON.stringify(res),
|
body: JSON.stringify(res),
|
||||||
}).catch((e) => {
|
}).catch(() => {});
|
||||||
console.log(99999, e);
|
|
||||||
});
|
|
||||||
})();
|
})();
|
||||||
|
@ -44,8 +44,6 @@ import { PluginManagerProvider } from './securityPlugin/pluginManager.provider';
|
|||||||
import { LogRequestMiddleware } from './middlewares/logRequest.middleware';
|
import { LogRequestMiddleware } from './middlewares/logRequest.middleware';
|
||||||
import { PluginManager } from './securityPlugin/pluginManager';
|
import { PluginManager } from './securityPlugin/pluginManager';
|
||||||
import { Logger } from './logger';
|
import { Logger } from './logger';
|
||||||
import { DownloadTask } from './models/downloadTask.entity';
|
|
||||||
import { Session } from './models/session.entity';
|
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [
|
imports: [
|
||||||
|
@ -12,7 +12,7 @@ export class LogRequestMiddleware implements NestMiddleware {
|
|||||||
const userAgent = req.get('user-agent') || '';
|
const userAgent = req.get('user-agent') || '';
|
||||||
const startTime = Date.now();
|
const startTime = Date.now();
|
||||||
const traceId = genTraceId({ ip });
|
const traceId = genTraceId({ ip });
|
||||||
this.logger.setTraceId(traceId);
|
req['traceId'] = traceId;
|
||||||
const query = JSON.stringify(req.query);
|
const query = JSON.stringify(req.query);
|
||||||
const body = JSON.stringify(req.body);
|
const body = JSON.stringify(req.body);
|
||||||
this.logger.info(
|
this.logger.info(
|
||||||
|
@ -33,4 +33,10 @@ export class MessagePushingTask extends BaseEntity {
|
|||||||
|
|
||||||
@Column()
|
@Column()
|
||||||
deletedAt: Date;
|
deletedAt: Date;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
operator: string;
|
||||||
|
|
||||||
|
@Column()
|
||||||
|
operatorId: string;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +21,8 @@ export const mockSensitiveResponseSchema: ResponseSchema = {
|
|||||||
code: {
|
code: {
|
||||||
bannerConf: {
|
bannerConf: {
|
||||||
titleConfig: {
|
titleConfig: {
|
||||||
mainTitle: '<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
|
mainTitle:
|
||||||
|
'<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
|
||||||
subTitle: '',
|
subTitle: '',
|
||||||
},
|
},
|
||||||
bannerConfig: {
|
bannerConfig: {
|
||||||
@ -318,11 +319,13 @@ export const mockResponseSchema: ResponseSchema = {
|
|||||||
code: {
|
code: {
|
||||||
bannerConf: {
|
bannerConf: {
|
||||||
titleConfig: {
|
titleConfig: {
|
||||||
mainTitle: '<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
|
mainTitle:
|
||||||
|
'<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
|
||||||
subTitle: '',
|
subTitle: '',
|
||||||
},
|
},
|
||||||
bannerConfig: {
|
bannerConfig: {
|
||||||
bgImage: 'http://10.190.55.101:3000/imgs/skin/17e06b7604a007e1d3e1453b9ddadc3c.webp',
|
bgImage:
|
||||||
|
'http://10.190.55.101:3000/imgs/skin/17e06b7604a007e1d3e1453b9ddadc3c.webp',
|
||||||
videoLink: '',
|
videoLink: '',
|
||||||
postImg: '',
|
postImg: '',
|
||||||
},
|
},
|
||||||
|
@ -25,7 +25,8 @@ export const mockResponseSchema: ResponseSchema = {
|
|||||||
code: {
|
code: {
|
||||||
bannerConf: {
|
bannerConf: {
|
||||||
titleConfig: {
|
titleConfig: {
|
||||||
mainTitle: '<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
|
mainTitle:
|
||||||
|
'<h3 style="text-align: center">欢迎填写问卷</h3><p>为了给您提供更好的服务,希望您能抽出几分钟时间,将您的感受和建议告诉我们,<span style="color: rgb(204, 0, 0)">期待您的参与!</span></p>',
|
||||||
subTitle: '',
|
subTitle: '',
|
||||||
},
|
},
|
||||||
bannerConfig: {
|
bannerConfig: {
|
||||||
|
@ -2,7 +2,7 @@ import { Injectable } from '@nestjs/common';
|
|||||||
import { InjectRepository } from '@nestjs/typeorm';
|
import { InjectRepository } from '@nestjs/typeorm';
|
||||||
import { MongoRepository } from 'typeorm';
|
import { MongoRepository } from 'typeorm';
|
||||||
import { SurveyResponse } from 'src/models/surveyResponse.entity';
|
import { SurveyResponse } from 'src/models/surveyResponse.entity';
|
||||||
import { RECORD_STATUS } from 'src/enums';
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class SurveyResponseService {
|
export class SurveyResponseService {
|
||||||
constructor(
|
constructor(
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { computed, defineComponent, shallowRef, defineAsyncComponent, watch } from 'vue'
|
import { computed, defineComponent, shallowRef, defineAsyncComponent } from 'vue'
|
||||||
import { includes } from 'lodash-es'
|
import { includes } from 'lodash-es'
|
||||||
|
|
||||||
import BaseChoice from '../BaseChoice'
|
import BaseChoice from '../BaseChoice'
|
||||||
@ -61,7 +61,7 @@ export default defineComponent({
|
|||||||
return options.map((item) => {
|
return options.map((item) => {
|
||||||
return {
|
return {
|
||||||
...item,
|
...item,
|
||||||
disabled: (item.release === 0) || isDisabled(item)
|
disabled: isDisabled(item)
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
@ -93,7 +93,6 @@ export default defineComponent({
|
|||||||
return {
|
return {
|
||||||
onChange,
|
onChange,
|
||||||
handleSelectMoreChange,
|
handleSelectMoreChange,
|
||||||
disableState,
|
|
||||||
myOptions,
|
myOptions,
|
||||||
selectMoreView
|
selectMoreView
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { defineComponent, shallowRef, watch, defineAsyncComponent } from 'vue'
|
import { defineComponent, shallowRef, defineAsyncComponent } from 'vue'
|
||||||
import BaseChoice from '../BaseChoice'
|
import BaseChoice from '../BaseChoice'
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
"vitest.config.*",
|
"vitest.config.*",
|
||||||
"cypress.config.*",
|
"cypress.config.*",
|
||||||
"nightwatch.conf.*",
|
"nightwatch.conf.*",
|
||||||
"playwright.config.*"
|
"playwright.config.*",
|
||||||
|
"report.ts"
|
||||||
],
|
],
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"composite": true,
|
"composite": true,
|
||||||
|
Loading…
Reference in New Issue
Block a user